7 Replies Latest reply on Feb 19, 2008 8:03 AM by emsa

    'selected' item of h:selectOneMenu is to updated

    emsa

      Hi,

      I have a couple of 'chained' <h:selectOneMenu> in an <a4j:region> something like:

      <h:selectOneMenu value="#{node.selected}">
       <a4j:support reRender="#{rerender}" event="onchange" action="#{type.select}" status="status"/>
       <f:selectItems value="#{node.selectables}" />
      </h:selectOneMenu>
      


      and it is all workning very well.

      Sometimes I need to force the value of the selected item from another control on the page. I have verified that the selected item is updated in the bean (#{type}) but the <h:selectOneMenu /> does not update the selected item when the #{rerender} region is updated.

      Is there any way to force the <h:selectOneMenu /> to updated the selected value from the bean before it is rendered?

      /Magnus