2 Replies Latest reply on Oct 27, 2011 2:37 PM by Christian Peter

    how to pass object from richface Datatable to actionlistener

    Rishi gautam Newbie

      I am passing an object from richface datatable like:

       

      <rich:column>

      <a4j:commandLink

      value="Transfer inside Group"

      actionListener="#{adminBean.init_machineTransferInsideGroup}"

      reRender="transferInsideGroupMachinePanel"

      oncomplete="#{rich:component('transferInsideGroupMachinePanel')}.show()">

          <f:setPropertyActionListener

                   target="#{adminBean.machineToChange}"

              value="#{Machineassg3}" />

          </a4j:commandLink>

      <rich:column>

       

      What i am expecting from above code, when command link is clicked:

      1)assign object (Machineassg3) to bean's variable (adminBean.machineToChange)

      2)then invoking actionlistener (init_machineTransferInsideGroup)

      3)after that richmodal panel

       

      But steps that are happening is :

      1)Invoking actionlistener (init_machineTransferInsideGroup) first

      2)assign object (Machineassg3) to bean's variable (adminBean.machineToChange)

      3)after that richmodal panel

       

      How to do expected steps (means assigning first and then invoking actionlistener)

       

      Thanks