Package org.omnifaces.event
Class PreInvokeActionEvent
- java.lang.Object
-
- java.util.EventObject
-
- jakarta.faces.event.SystemEvent
-
- jakarta.faces.event.ComponentSystemEvent
-
- org.omnifaces.event.PreInvokeActionEvent
-
- All Implemented Interfaces:
Serializable
@NamedEvent(shortName="preInvokeAction") public class PreInvokeActionEvent extends ComponentSystemEvent
Use this event to have a hook on a listener method during the beforephase of thePhaseId.INVOKE_APPLICATION
. This event is supported onUIViewRoot
,UIForm
,UIInput
andUICommand
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 singleUIInput
andUICommand
components on an easy manner.<f:event type="preInvokeAction" listener="#{bean.preInvokeAction}" />
- Since:
- 1.1
- Author:
- Bauke Scholtz
- See Also:
PostInvokeActionEvent
,InvokeActionEventListener
, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description PreInvokeActionEvent(UIComponent component)
Construct a new pre invoke action event on the given component.
-
Method Summary
-
Methods inherited from class jakarta.faces.event.ComponentSystemEvent
getComponent, isAppropriateListener, processListener
-
Methods inherited from class jakarta.faces.event.SystemEvent
getFacesContext
-
Methods inherited from class java.util.EventObject
getSource, toString
-
-
-
-
Constructor Detail
-
PreInvokeActionEvent
public PreInvokeActionEvent(UIComponent component)
Construct a new pre invoke action event on the given component.- Parameters:
component
- The component to invoke the event on.
-
-