org.omnifaces.event
Class PreInvokeActionEvent
java.lang.Object
java.util.EventObject
javax.faces.event.SystemEvent
javax.faces.event.ComponentSystemEvent
org.omnifaces.event.PreInvokeActionEvent
- All Implemented Interfaces:
- java.io.Serializable
@NamedEvent(shortName="preInvokeAction")
public class PreInvokeActionEvent
- extends javax.faces.event.ComponentSystemEvent
Use this event to have a hook on a listener method during the beforephase of the PhaseId.INVOKE_APPLICATION
.
This event is supported on UIViewRoot
, UIForm
, UIInput
and UICommand
components.
This event is particularly helpful as a replacement of <f:event type="preRenderView">
and also
provides the possibility to invoke multiple action listeners on a single UIInput
and UICommand
components on an easy manner.
<f:event type="preInvokeAction" listener="#{bean.preInvokeAction}" />
- Since:
- 1.1
- Author:
- Bauke Scholtz
- See Also:
PostInvokeActionEvent
,
InvokeActionEventListener
,
Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
PreInvokeActionEvent(javax.faces.component.UIComponent component)
Construct a new pre invoke action event on the given component. |
Methods inherited from class javax.faces.event.ComponentSystemEvent |
getComponent |
Methods inherited from class javax.faces.event.SystemEvent |
isAppropriateListener, processListener |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PreInvokeActionEvent
public PreInvokeActionEvent(javax.faces.component.UIComponent component)
- Construct a new pre invoke action event on the given component.
- Parameters:
component
- The component to invoke the event on.