Name
ActionSource
Synopsis
This interface contains all methods
related to firing and handling a
javax.faces.event.ActionEvent
. All component
classes that fire this event, such as command components, must
implement this interface.
Synopsis
Interface name: |
javax.faces.component.ActionSource |
Extends: |
None |
Implemented by: |
javax.faces.component.UICommand |
Methods
-
public void addActionListener(javax.faces.event.ActionListener l)
Adds the
ActionListener
to the list of listeners for theActionEvent
this component fires.-
public javax.faces.el.MethodBinding getAction()
Returns the
MethodBinding
for the action method that should be invoked to handle theActionEvent
this component fires ornull
if no method is bound.-
public javax.faces.el.MethodBinding getActionListener()
Returns the
MethodBinding
for the action listener method that should be invoked to handle theActionEvent
this component fires ornull
if no method is bound.-
public javax.faces.event.ActionListener[] getActionListeners()
Returns all
ActionListener
instances registered with this component or an empty array if none is registered.-
public boolean isImmediate()
Returns
true
if theActionEvent
should be processed in the Apply Request Values phase orfalse
if it should be processed in the Invoke Application Phase.-
public void removeActionListener(javax.faces.event.ActionListener l)
Removes the
ActionListener
from the list of listeners for theActionEvent
this component fires.-
public void setAction(javax.faces.el.MethodBinding ...
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.