public class PostAddToViewEvent extends ComponentSystemEvent
When an instance of this event is passed
to SystemEventListener.processEvent(javax.faces.event.SystemEvent) or ComponentSystemEventListener.processEvent(javax.faces.event.ComponentSystemEvent), the listener
implementation may assume that the source of this event
instance is a UIComponent instance and that either that
instance or an ancestor of that instance was just added to the view.
Therefore, the implementation may assume it is safe to call UIComponent.getParent(), UIComponent.getClientId(javax.faces.context.FacesContext), and other
methods that depend upon the component instance being added into the
view.
The implementation must guarantee that javax.faces.application.Application#publishEvent is called,
immediately after any UIComponent instance is added to
the view hierarchy except in the case where ResponseStateManager.isPostback(javax.faces.context.FacesContext) returns
true at the same time as javax.faces.context.FacesContext#getCurrentPhaseId returns PhaseId.RESTORE_VIEW. When both of those
conditions are met, javax.faces.application.Application#publishEvent must not be called.
source| Constructor and Description |
|---|
PostAddToViewEvent(UIComponent component)
Instantiate a new
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAppropriateListener(FacesListener listener)
Returns |
getComponentprocessListenergetSource, toStringpublic PostAddToViewEvent(UIComponent component)
Instantiate a new
PostAddToViewEvent that indicates the argument
component was just added to the view.
component - the UIComponent that has just been
added to the view.IllegalArgumentException - if the argument is null.public boolean isAppropriateListener(FacesListener listener)
Returns true if and
only if the argument listener is an instance of
SystemEventListener.
isAppropriateListener in class SystemEventlistener - Copyright © 2012 JBoss by Red Hat. All Rights Reserved.