javax.portlet.faces.component
Class PortletNamingContainerUIViewRoot

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIViewRoot
              extended by javax.portlet.faces.component.PortletNamingContainerUIViewRoot
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.faces.component.NamingContainer, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.component.UniqueIdVendor, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder

@PortletNamingContainer
public class PortletNamingContainerUIViewRoot
extends javax.faces.component.UIViewRoot
implements java.io.Serializable, javax.faces.component.NamingContainer

UIViewRoot that implements portlet specific NamingContainer that ensures the consumer's unique portlet Id is encoded in all tree components. The class is annotated by javax.portlet.faces.annotation.PortletNamingContainer allowing the bridge to recognize that this specific UIViewRoot implements the behavior.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.faces.component.UIViewRoot
COMPONENT_FAMILY, COMPONENT_TYPE, METADATA_FACET_NAME, UNIQUE_ID_PREFIX, VIEW_PARAMETERS_KEY
 
Fields inherited from class javax.faces.component.UIComponent
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
PortletNamingContainerUIViewRoot()
           
 
Method Summary
 java.lang.String getContainerClientId(javax.faces.context.FacesContext context)
          NamingContainer semantics worked generically (serviced by subclasses) as long as the class is marked as implementing NamingContainer and we use the portletNamespace Id as (part of) the component's id.
 void setId(java.lang.String id)
           
 
Methods inherited from class javax.faces.component.UIViewRoot
addComponentResource, addComponentResource, addPhaseListener, broadcastEvents, createUniqueId, createUniqueId, encodeBegin, encodeChildren, encodeEnd, getAfterPhaseListener, getBeforePhaseListener, getComponentResources, getFamily, getLocale, getPhaseListeners, getRenderKitId, getRendersChildren, getViewId, getViewListenersForEventClass, getViewMap, getViewMap, isInView, processApplication, processDecodes, processRestoreState, processUpdates, processValidators, queueEvent, removeComponentResource, removeComponentResource, removePhaseListener, restoreState, saveState, 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, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletNamingContainerUIViewRoot

public PortletNamingContainerUIViewRoot()
Method Detail

getContainerClientId

public java.lang.String getContainerClientId(javax.faces.context.FacesContext context)
NamingContainer semantics worked generically (serviced by subclasses) as long as the class is marked as implementing NamingContainer and we use the portletNamespace Id as (part of) the component's id.

Overrides:
getContainerClientId in class javax.faces.component.UIComponent

setId

public void setId(java.lang.String id)
Overrides:
setId in class javax.faces.component.UIComponentBase


Copyright © 2007-2011 The Apache Software Foundation. All Rights Reserved.