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:
Serializable, NamingContainer, StateHolder

@PortletNamingContainer
public class PortletNamingContainerUIViewRoot
extends UIViewRoot
implements Serializable, 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, UNIQUE_ID_PREFIX
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
PortletNamingContainerUIViewRoot()
           
 
Method Summary
 String getContainerClientId(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(String id)
           
 
Methods inherited from class javax.faces.component.UIViewRoot
addPhaseListener, createUniqueId, encodeBegin, encodeEnd, getAfterPhaseListener, getBeforePhaseListener, getFamily, getLocale, getRenderKitId, getViewId, processApplication, processDecodes, processUpdates, processValidators, queueEvent, removePhaseListener, restoreState, saveState, setAfterPhaseListener, setBeforePhaseListener, setLocale, setRenderKitId, setViewId
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getValueExpression, setValueExpression
 
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 String getContainerClientId(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 UIComponent

setId

public void setId(String id)
Overrides:
setId in class UIComponentBase


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