Oracle Fusion Middleware Tag Reference for Oracle ADF Faces
12c (12.1.2)

E23188-01

<af:target>

target target


Provides a declarative way to allow a component to specify the list of targets it wants executed and rendered when an event (among the list of events) is fired by the component.

This example has the command execute only itself ignoring the default behavior of executing the event root subtree, but render the component pfl1

<source> <af:commandButton text="cancel" partialSubmit="true" id="cb1"> <af:target execute="@this" render="pfl1"/> </af:commandButton> </source>

Attributes

Name Type Supports EL? Description
events String[] yes list of event names for which the target rules apply. The space delimited legal values are: @all, action, calendar, calendarActivity, calendarActivityDurationChange, calendarDisplayChange, carouselSpin, contextInfo, dialog, disclosure, focus, item, launch, launchPopup, poll, popupCanceled, popupFetch, query, queryOperation, rangeChange, regionNavigation, return, returnPopupData, returnPopup, rowDisclosure, selection, sort, and valueChange. The default value is @all.
execute String[] yes Set of components that will be executed when one of the specified events is raised. If a literal is specified it must be a space delimited String of component identifiers and/or one of the keywords. If not specified, the default behavior will apply. Supported keywords are @this, @all (similar to f:ajax). In addition a new keyword @default can be explicitly used to revert to the ADF default behavior. The default value is @default.
render String[] yes Set of the components that will be rendered when one of the specified events is raised. If not specified the default behavior will apply. Supported keywords are similar to f:ajax - @this, @all. In addition the new keyword @default can be explicitly used to revert to the ADF default behavior. The default value is @default.