Package jakarta.faces.event
Class PreRenderComponentEvent
java.lang.Object
java.util.EventObject
jakarta.faces.event.SystemEvent
jakarta.faces.event.ComponentSystemEvent
jakarta.faces.event.PreRenderComponentEvent
- All Implemented Interfaces:
Serializable
When an instance of this event is passed to SystemEventListener.processEvent(jakarta.faces.event.SystemEvent) or
ComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that the
source of this event instance is the UIComponent instance that is about to be rendered and that
it is safe to call UIComponent.getParent(), UIComponent.getClientId(), and other methods that depend upon
the component instance being in the view.
- Since:
- 2.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPreRenderComponentEvent(UIComponent component) Instantiate a newPreRenderComponentEventthat indicates the argumentcomponentis about to be rendered.PreRenderComponentEvent(FacesContext facesContext, UIComponent component) Instantiate a newPreRenderComponentEventthat indicates the argumentcomponentis about to be rendered. -
Method Summary
Methods inherited from class jakarta.faces.event.ComponentSystemEvent
getComponent, isAppropriateListener, processListenerMethods inherited from class jakarta.faces.event.SystemEvent
getFacesContextMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
PreRenderComponentEvent
Instantiate a new
PreRenderComponentEventthat indicates the argumentcomponentis about to be rendered.- Parameters:
component- theUIComponentthat is about to be rendered.- Throws:
IllegalArgumentException- if the argument isnull.
-
PreRenderComponentEvent
Instantiate a new
PreRenderComponentEventthat indicates the argumentcomponentis about to be rendered.- Parameters:
facesContext- the Faces context.component- theUIComponentthat is about to be rendered.- Throws:
IllegalArgumentException- if the argument isnull.
-