Tuesday, April 29, 2014

Easy way to store a value in a memory scope variable on button, commandlink click in ADF.

We can use the af:setPropertyListener as mentioned below to achieve the same.

<af:commandButton id="cb3" blocking="true">
    <af:setPropertyListener from="#{row.employeeId}" to="#{pageFlowScope.address}"
                                           type="action"/>
</af:commandButton>

The setPropertyListener tag provides a declarative syntax for assigning values when an event fires. The setPropertyListener implements the listener interface for a variety of events, to indicate which event type it should listen for set the 'type' attribute.

No comments:

Post a Comment