java - Primefaces Wizard does not proceed with selectOneMenu -
the wizard doesn't proceed next tab when use value="#{wizard.filial.numfilial}".
but, works fine when use value="#{wizard.intfilial}".
can me?
<!--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>
wizard.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>
you need instantiate filial object because need instance of filial type object contains numfilial.
try
private filial filial = new filial();
Comments
Post a Comment