当我使用时,向导不会进入下一个选项卡value="#{wizard.filial.numFilial}".
但是,当我使用时它工作正常value="#{wizard.intFilial}".
有人可以帮助我吗?
<!--XHTML-->
<h:selectOneMenu id="fieldFilial" title="Filial" value="#{wizard.filial.numFilial}" required="true" label="Filial*" >
<f:selectItem itemLabel="Selecione" />
<f:selectItems value="#{commons.filiais}" var="cfilial"
itemValue="#{cfilial.numFilial}" itemLabel="#{cfilial.descricao} "/>
</h:selectOneMenu>
向导.java
@ManagedBean
@SessionScoped
public class Wizard{
private Filial filial;
private int intFilial;
<GETTERS/SETTERS>
}
**Commons.java**
@ManagedBean
@SessionScoped
public class Commons{
private List<Filial> filiais;
<GETTERS/SETTERS>
}
<!--FILIAL-->
public class Filial implements Comparable<Filial>, Serializable {
private int numFilial;
private String descricao;
<GETTERS/SETTERS>