6 Replies Latest reply on Aug 28, 2009 6:54 AM by John Doe

    h:selectOneMenu and a4j:support

    John Who Newbie

      Hi,

      I'm having a problem to add js-capability to a h:selectOneMenu tag.
      What I'm trying to reach is that if a user chose one entry from a dropdown and leave this field another field shoud be updated.

      Thats my code:

      <h:selectOneMenu id="nummer" value="#{mb.nummer}" onblur="#{fonds.updateName}">
       <a4j:support event="onblur" actionListener="#{mb.updateName}" reRender="name" />
       <f:selectItems value="#{mb.listeNummer}" />
      </h:selectOneMenu>
      <h:selectOneMenu id="name" value="#{mb.name}">
       <a4j:support event="onblur" actionListener="#{mb.updateNummer}" reRender="nummer" />
       <f:selectItems value="#{fonds.listeName}" />
      </h:selectOneMenu>
      


      Neither the onblur function at the selectOneMenu nor the a4j:support tag takes any effect.

      But if I try the same with inputText there is no problem.

      Does anybody has an idea? Is there at least a chance to combine a selectOneMenu tag with js-capability?
      Thanks in advance.