1 Reply Latest reply on Nov 15, 2007 4:14 PM by Pete Muir

    SelectOneMenu get null, why?

    Stateless Bean Novice

      Hi, I got 2 selectOneMenu components in my app and don't know why first get null but second is success fully submited?

      public class ProductsAction extends UserEngine implements ProductsConsole {
       private List<SelectItem> groupsItemList;
       private String selectedGroupCode;
       private List<SelectItem> vatItemList;
       private int vat;

      getters are declared in console intrface.

      <a4j:form id="productsFrom">
      <h:selectOneMenu value="#{productsAction.selectedGroupCode}" immediate="true">
      <f:selectItems value="#{productsAction.groupsItemList}" /> </h:selectOneMenu>
      <h:selectOneMenu value="#{productsAction.vat}" immediate="true">
      <f:selectItems value="#{productsAction.vatItemList}" />
      <a4j:commandButton value="#{messages['button.add']}" action="#{productsAction.saveProduct}" reRender="productsFrom"

      Why my val variable is submited and setted like selected from list, but my groupCode not?