|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.mindmatters.faces.application.DelegatingActionListener
public final class DelegatingActionListener
This action listener implementation processes action events during the
Apply Request Values or Invoke Application phase of the
request processing lifecycle (depending upon the immediate
property of the ActionSource
that queued this
event.
Usually this action listener invokes the specified application action method of the encapsulated action listener of the underlying JSF implementation. But if there can be found an action listener in the request the action method of this one will be invoked.
Furthermore this action listener populates the action event given to the
action method as a thread local variable via the
ActionEventContextHolder
.
ActionEventContext
,
ActionEventContextHolder
Constructor Summary | |
---|---|
DelegatingActionListener(ActionListener orig)
Creates an ApplicationListener with the given action listener orig of the underlying JSF implementation. |
Method Summary | |
---|---|
static void |
bindActionListener(FacesContext context,
ActionListener actionListener)
Associate the given ActionListener with the current thread. |
void |
processAction(ActionEvent event)
Invoked when the action described by the specified
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingActionListener(ActionListener orig)
orig
of the underlying JSF implementation.
orig
- the original action listener of the underlying JSF
implementationMethod Detail |
---|
public static void bindActionListener(FacesContext context, ActionListener actionListener)
DelegatingActionListener
.
context
- FacesContext
for the current requestactionListener
- the current ActionListenerpublic void processAction(ActionEvent event)
Invoked when the action described by the specified
ActionEvent
occurs.
processAction
in interface ActionListener
event
- The ActionEvent
that has occurred
|
JSF-Spring | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |