Oracle Fusion Middleware Tag Reference for Oracle ADF Faces
12c (12.2.1.4.0)
E81455-02
<af:clientListener>
clientListener clientlistenerclient
The clientListener tag is a declarative way to register a
client-side listener script to be executed when a specific event
type is fired. This tag will be ignored for any server-rendered
components, as it is only supported by rich client components.
Before using the clientListener tag, be sure to look for any existing
behavior tags which might eliminate the need for scripts.
For example, the af:showPopupBehavior tag simplifies what it takes
to display a popup.
Accessibility Guidelines
Using event types of mouseDown, mouseUp, mouseMove, mouseOver, and mouseOut can create a application that does not work for a keyboard only user. If you use one of these event types, make sure you provide alternate access to the same content for a keyboard only user.
Do not initiate a change in context, like showing a popup, on focus or blur event types. A change in context will make your application hard to use by a keyboard only user, and confusing for someone using a screen reader.
This example will invoke the JavaScript method "showPopupFromAction"
when the button is clicked and will then manually display a popup.