5 Replies Latest reply on Dec 2, 2009 8:25 AM by BJorn T Johansen

    a4j:support only working on commandbutton after first click?

    BJorn T Johansen Newbie

      I have the following code:

      <rich:column style="text-align: center;">
       <h:commandButton value="#{msgs.show_deal}" action="#{dealController.showDeal}">
       <a4j:support event="onclick">
       <a4j:actionparam value="#{supplier.id}" name="param1" assignTo="#{dealController.chosenSupplierId}"/>
       </a4j:support>
       </h:commandButton>
      </rich:column>
      


      The first time I click the button, the action on the button is called _before_ the actionparam but after the first time, the actionparam is always called before the action method on the button...

      What am I missing?


      Regards,

      BTJ