[jboss-user] [JBoss Seam] - SelectOneMenu get null, why?

Stateless Bean do-not-reply at jboss.com
Thu Nov 15 09:40:56 EST 2007


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


  | @Stateful
  | @Scope(ScopeType.SESSION)
  | @Name("productsAction")
  | 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}" />
  | </h:selectOneMenu>
  | 
  | <a4j:commandButton value="#{messages['button.add']}"  action="#{productsAction.saveProduct}" reRender="productsFrom"
  | </a4j:form>
  | 

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



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4105036#4105036

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4105036



More information about the jboss-user mailing list