1 Reply Latest reply on Jun 24, 2008 4:26 AM by Lotfi Mellouk

    does a4j:actionParam works on selectOneMenu?

    Lotfi Mellouk Master

      hello,

      I try to get label for selectItem on selectOneMenu using a4j:support and assign its value to a bean parameter

      <h:selectOneMenu value="#{bean.user}" id="users" >
      <f:selectItem itemLabel="All" itemValue="#{bean.zero}" />
      <t:selectItems value="#{bean.userItems}" var="list"
      itemLabel="#{list.lastname} #{list.firstname}"
      itemValue="#{list.userId}" />
      <a4j:support event="onchange">
      <a4j:actionparam name="userName" value="#{list.lastname}" assignTo="#{bean.userName}" />
      </a4j:support>
      </h:selectOneMenu>
      


      but the assigned value is already null.
      can we user action:Param for this interest?
      thanks!