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:
- assign object (Machineassg3) to bean’s variable (adminBean.machineToChange)
- then invoking actionlistener (init_machineTransferInsideGroup)
- after that richmodal panel
But steps that are happening is :
- Invoking actionlistener (init_machineTransferInsideGroup)
- assign object (Machineassg3) to bean’s variable (adminBean.machineToChange)
- after that richmodal panel
How to do expected steps (means assigning first and then invoking actionlistener)
You could get the rows variable with a
ValueExpression.Lets say you have in the dataTable declaration the attribute
var="machine", then in the managed bean’s action method you could get like soI don’t know the actual class of the
machineassg3variable and so I just had it likeMachineassg3.I hope it helps.