Oracle Fusion Middleware Tag Reference for Oracle ADF Faces 12c (12.2.1.4.0) E81455-02 |
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:
<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>
Attributes
Name
Type
Supports EL?
Description
the source of the value; can be an EL expression or a constant value
the target for the value; must be an EL expression
the event type to listen for. The legal values are:
action, calendar, calendarActivity, calendarActivityDurationChange, calendarDisplayChange,
contextInfo, dialog, disclosure, focus, item, launch, launchPopup, poll, popupFetch,
query, queryOperation, rangeChange, regionNavigation, return, returnPopupData,
returnPopup, rowDisclosure, selection, sort, springboardChange, and valueChange.