Top Description Fields Constructors Methods
jakarta.faces.event

public Class PreRenderComponentEvent

extends ComponentSystemEvent
Class Inheritance
Imports
jakarta.faces.component.UIComponent, jakarta.faces.context.FacesContext

When an instance of this event is passed to SystemEventListener#processEvent or ComponentSystemEventListener#processEvent, 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

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
PreRenderComponentEvent(UIComponent
the UIComponent that is about to be rendered.
component
)

Instantiate a new PreRenderComponentEvent that indicates the argument component is about to be rendered.

public
PreRenderComponentEvent(FacesContext
the Faces context.
facesContext
,
UIComponent
the UIComponent that is about to be rendered.
component
)

Instantiate a new PreRenderComponentEvent that indicates the argument component is about to be rendered.

Method Summary

Inherited from jakarta.faces.event.ComponentSystemEvent:
getComponentisAppropriateListenerprocessListener

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides jakarta.faces.event.ComponentSystemEvent.serialVersionUID.

Constructor Detail

PreRenderComponentEventback to summary
public PreRenderComponentEvent(UIComponent component)

Instantiate a new PreRenderComponentEvent that indicates the argument component is about to be rendered.

Parameters
component:UIComponent

the UIComponent that is about to be rendered.

Exceptions
IllegalArgumentException:
if the argument is null.
PreRenderComponentEventback to summary
public PreRenderComponentEvent(FacesContext facesContext, UIComponent component)

Instantiate a new PreRenderComponentEvent that indicates the argument component is about to be rendered.

Parameters
facesContext:FacesContext

the Faces context.

component:UIComponent

the UIComponent that is about to be rendered.

Exceptions
IllegalArgumentException:
if the argument is null.