Class PreRenderViewEvent
- java.lang.Object
-
- java.util.EventObject
-
- javax.faces.event.SystemEvent
-
- javax.faces.event.ComponentSystemEvent
-
- javax.faces.event.PreRenderViewEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class PreRenderViewEvent extends ComponentSystemEvent
When an instance of this event is passed to
SystemEventListener.processEvent(javax.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(javax.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is theUIViewRootinstance that is about to be rendered.It is valid for a listener for this event to change the
UIViewRootin the currentFacesContext, but the listener must ensure that the newUIViewRootwas created with a call toViewHandler.createView(javax.faces.context.FacesContext, java.lang.String), and that the view is fully populated with the children to be traversed during render. The listener implementation may callViewDeclarationLanguage.buildView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot)to populate theUIViewRoot.- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PreRenderViewEvent(UIViewRoot root)Instantiate a newPreRenderViewEventthat indicates the argumentrootis about to be rendered.
-
Method Summary
-
Methods inherited from class javax.faces.event.ComponentSystemEvent
getComponent, isAppropriateListener, processListener
-
-
-
-
Constructor Detail
-
PreRenderViewEvent
public PreRenderViewEvent(UIViewRoot root)
Instantiate a new
PreRenderViewEventthat indicates the argumentrootis about to be rendered.- Parameters:
root- theUIViewRootthat is about to be rendered.
-
-