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.
This example shows a table with a "Show..." button. When the button is pressed, the following will happen:
The target page can then retrieve the detail object from the process scope and use it as needed.
<source> <h:dataTable var="row" value="#{....}"> ... <h:column> <h:commandButton value="Show..." action="showDetail" ..> <af:setPropertyListener from="#{row}" to="#{pageFlowScope.detail}" type="action"/> </h:commandButton> </h:column> </h:dataTable>
</source>
Name | Type | Supports EL? | Description |
---|---|---|---|
Yes | |||
Only EL | |||
No |