6 Replies Latest reply on Apr 6, 2009 5:31 PM by Francois Eric

    h:selectOneMenu(s:selectItems and f:converter) problem

    ya ji Newbie

      I can't get the value of selectItems in stateless ejb as below:


      <h:selectOneMenu id="selOrg" value="#{MyBean.selOrg}" >
          <s:selectItems value="#{OrgBean.allOrg}" var="org" label="#{org.name}" noSelectionLabel=" -- Select --" />
          <f:converter converterId="orgConverter"/>
      </h:selectOneMenu>



      and I can get it from:


      <h:selectOneMenu id="selOrg" value="#{MyBean.selOrg}" >
          <f:selectItem itemLabel="-- select --" itemValue=""/>  
          <f:selectItem itemLabel="Myorg" itemValue="1"/>
      </h:selectOneMenu>



      But I need to the dynamic list, how to fix it? thanks.