Class InvokeActionEventListener

java.lang.Object
org.omnifaces.eventlistener.DefaultPhaseListener
org.omnifaces.eventlistener.InvokeActionEventListener
All Implemented Interfaces:
FacesListener, PhaseListener, SystemEventListener, Serializable, EventListener

public class InvokeActionEventListener extends DefaultPhaseListener implements SystemEventListener

The InvokeActionEventListener will add support for new <f:event> types preInvokeAction and postInvokeAction. Those events are published during the beforephase and afterphase of INVOKE_APPLICATION respectively.

This event is supported on any UIComponent, including UIViewRoot, UIForm, UIInput and UICommand components. This thus also provides the possibility to invoke multiple action listeners on a single UIInput and UICommand component on an easy manner.

As this phase listener has totally no impact on a webapp's default behavior, this phase listener is already registered by OmniFaces own faces-config.xml and thus gets auto-initialized when the OmniFaces JAR is bundled in a webapp, so endusers do not need to register this phase listener explicitly themselves.

Since:
1.1
Author:
Bauke Scholtz
See Also: