public class ViewRoot extends UIViewRoot implements NamingContainer
Modifier and Type | Field and Description |
---|---|
protected List<List<FacesEvent>> |
m_events
Two-dimensional list of
FacesEvent s
(a separate list for each phase). |
protected int |
m_uniqueId
Next unique-id suffix for components with auto-generated ids.
|
static String |
PORTLET_NAMESPACE_PARAM
Param to use to store portlet namespace.
|
static String |
PREFIX_UNIQUE_ID
Unique-id prefix for components with auto-generated ids.
|
COMPONENT_FAMILY, COMPONENT_TYPE, METADATA_FACET_NAME, UNIQUE_ID_PREFIX, VIEW_PARAMETERS_KEY
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
SEPARATOR_CHAR
Constructor and Description |
---|
ViewRoot() |
Modifier and Type | Method and Description |
---|---|
void |
addComponentResource(FacesContext context,
UIComponent componentResource,
String target) |
void |
broadcastEvents(FacesContext context,
PhaseId phaseId)
Broadcasts queued events for specified phase.
|
protected String |
calculateId()
Calculates an id for this view root that will be unique on a portal page.
|
protected void |
clearEventQueue()
Clears all pending events from event queues.
|
String |
createUniqueId() |
void |
encodeBegin(FacesContext context) |
UIComponent |
getFacet(String name) |
protected void |
initEventQueue()
Lazy-inits event queue, if not already initialized.
|
void |
processApplication(FacesContext context) |
void |
processDecodes(FacesContext context) |
void |
processUpdates(FacesContext context) |
void |
processValidators(FacesContext context) |
void |
queueEvent(FacesEvent event) |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
addComponentResource, addPhaseListener, createUniqueId, encodeChildren, encodeEnd, getAfterPhaseListener, getBeforePhaseListener, getComponentResources, getFamily, getLocale, getPhaseListeners, getRenderKitId, getRendersChildren, getViewId, getViewListenersForEventClass, getViewMap, getViewMap, isInView, processRestoreState, removeComponentResource, removeComponentResource, removePhaseListener, resetValues, restoreViewScopeState, setAfterPhaseListener, setBeforePhaseListener, setInView, setLocale, setRenderKitId, setViewId, subscribeToViewEvent, unsubscribeFromViewEvent
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setValueExpression, visitTree
public static final String PREFIX_UNIQUE_ID
public static final String PORTLET_NAMESPACE_PARAM
protected int m_uniqueId
protected transient List<List<FacesEvent>> m_events
FacesEvent
s
(a separate list for each phase).public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIViewRoot
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIViewRoot
public String createUniqueId()
createUniqueId
in class UIViewRoot
public void queueEvent(FacesEvent event)
queueEvent
in class UIViewRoot
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIViewRoot
IOException
public void processDecodes(FacesContext context)
processDecodes
in class UIViewRoot
public void processValidators(FacesContext context)
processValidators
in class UIViewRoot
public void processUpdates(FacesContext context)
processUpdates
in class UIViewRoot
public void processApplication(FacesContext context)
processApplication
in class UIViewRoot
protected String calculateId()
public void broadcastEvents(FacesContext context, PhaseId phaseId)
broadcastEvents
in class UIViewRoot
protected void initEventQueue()
protected void clearEventQueue()
public UIComponent getFacet(String name)
getFacet
in class UIComponentBase
public void addComponentResource(FacesContext context, UIComponent componentResource, String target)
addComponentResource
in class UIViewRoot