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
 
 public class PreRenderComponentEvent extends ComponentSystemEvent When an instance of this event is passed to SystemEventListener.processEvent(jakarta.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is theUIComponentinstance that is about to be rendered and that it is safe to callUIComponent.getParent(),UIComponent.getClientId(), and other methods that depend upon the component instance being in the view.- Since:
- 2.0
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class java.util.EventObjectsource
 
- 
 - 
Constructor SummaryConstructors Constructor Description PreRenderComponentEvent(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.ComponentSystemEventgetComponent, isAppropriateListener, processListener
 - 
Methods inherited from class jakarta.faces.event.SystemEventgetFacesContext
 - 
Methods inherited from class java.util.EventObjectgetSource, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
PreRenderComponentEventpublic PreRenderComponentEvent(UIComponent component) Instantiate a new PreRenderComponentEventthat indicates the argumentcomponentis about to be rendered.- Parameters:
- component- the- UIComponentthat is about to be rendered.
- Throws:
- IllegalArgumentException- if the argument is- null.
 
 - 
PreRenderComponentEventpublic PreRenderComponentEvent(FacesContext facesContext, UIComponent component) Instantiate a new PreRenderComponentEventthat indicates the argumentcomponentis about to be rendered.- Parameters:
- facesContext- the Faces context.
- component- the- UIComponentthat is about to be rendered.
- Throws:
- IllegalArgumentException- if the argument is- null.
 
 
- 
 
-