Class ViewRoot
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIViewRoot
com.webmethods.caf.faces.component.ViewRoot
- All Implemented Interfaces:
EventListener
,NamingContainer
,PartialStateHolder
,StateHolder
,TransientStateHolder
,UniqueIdVendor
,ComponentSystemEventListener
,FacesListener
,SystemEventListenerHolder
View root.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<List<FacesEvent>>
Two-dimensional list ofFacesEvent
s (a separate list for each phase).protected int
Next unique-id suffix for components with auto-generated ids.static final String
Param to use to store portlet namespace.static final String
Unique-id prefix for components with auto-generated ids.Fields inherited from class javax.faces.component.UIViewRoot
COMPONENT_FAMILY, COMPONENT_TYPE, METADATA_FACET_NAME, UNIQUE_ID_PREFIX, VIEW_PARAMETERS_KEY, VIEWROOT_PHASE_LISTENER_QUEUES_EXCEPTIONS_PARAM_NAME
Fields inherited from class javax.faces.component.UIComponent
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
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addComponentResource
(FacesContext context, UIComponent componentResource, String target) void
broadcastEvents
(FacesContext context, PhaseId phaseId) Broadcasts queued events for specified phase.protected String
Calculates an id for this view root that will be unique on a portal page.protected void
Clears all pending events from event queues.void
encodeBegin
(FacesContext context) protected void
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) saveState
(FacesContext context) Methods inherited from class javax.faces.component.UIViewRoot
addComponentResource, addPhaseListener, createUniqueId, encodeChildren, encodeEnd, getAfterPhaseListener, getBeforePhaseListener, getComponentResources, getComponentResources, getFamily, getLocale, getPhaseListeners, getRenderKitId, getRendersChildren, getViewId, getViewListenersForEventClass, getViewMap, getViewMap, isInView, processEvent, processRestoreState, removeComponentResource, removeComponentResource, removePhaseListener, resetValues, restoreViewScopeState, setAfterPhaseListener, setBeforePhaseListener, setInView, setLocale, setRenderKitId, setViewId, subscribeToViewEvent, unsubscribeFromViewEvent
Methods inherited from class javax.faces.component.UIComponentBase
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
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isVisitable, popComponentFromEL, pushComponentToEL, restoreTransientState, saveTransientState, setValueExpression, visitTree
-
Field Details
-
PREFIX_UNIQUE_ID
Unique-id prefix for components with auto-generated ids.- See Also:
-
PORTLET_NAMESPACE_PARAM
Param to use to store portlet namespace.- See Also:
-
m_uniqueId
protected int m_uniqueIdNext unique-id suffix for components with auto-generated ids. -
m_events
Two-dimensional list ofFacesEvent
s (a separate list for each phase).
-
-
Constructor Details
-
ViewRoot
public ViewRoot()
-
-
Method Details
-
restoreState
- Specified by:
restoreState
in interfaceStateHolder
- Overrides:
restoreState
in classUIViewRoot
-
saveState
- Specified by:
saveState
in interfaceStateHolder
- Overrides:
saveState
in classUIViewRoot
-
createUniqueId
- Overrides:
createUniqueId
in classUIViewRoot
-
queueEvent
- Overrides:
queueEvent
in classUIViewRoot
-
encodeBegin
- Overrides:
encodeBegin
in classUIViewRoot
- Throws:
IOException
-
processDecodes
- Overrides:
processDecodes
in classUIViewRoot
-
processValidators
- Overrides:
processValidators
in classUIViewRoot
-
processUpdates
- Overrides:
processUpdates
in classUIViewRoot
-
processApplication
- Overrides:
processApplication
in classUIViewRoot
-
calculateId
Calculates an id for this view root that will be unique on a portal page. -
broadcastEvents
Broadcasts queued events for specified phase. TODO: verify that this works for JSF 2.x- Overrides:
broadcastEvents
in classUIViewRoot
-
initEventQueue
protected void initEventQueue()Lazy-inits event queue, if not already initialized. -
clearEventQueue
protected void clearEventQueue()Clears all pending events from event queues. -
getFacet
- Overrides:
getFacet
in classUIComponentBase
-
addComponentResource
public void addComponentResource(FacesContext context, UIComponent componentResource, String target) - Overrides:
addComponentResource
in classUIViewRoot
-