Class ComponentSupport
java.lang.Object
org.apache.myfaces.view.facelets.tag.faces.ComponentSupport
- Version:
- $Id$
- Author:
- Jacob Hookom
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringSpecial myfaces core marker to indicate the component is handled by a facelet tag handler, so its creation is not handled by user programatically and PSS remove listener should not register it when a remove happens.static final StringThe key under the facelet state map is storedstatic final StringThe UIPanel components, which are dynamically generated to serve as a container for facets with multiple non panel children, are marked with this attribute.static final String
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidaddFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName) static voidencodeRecursive(FacesContext context, UIComponent toRender) static UIComponentfindChild(UIComponent parent, String id) A lighter-weight version of UIComponent's findChild.static UIComponentfindChildByTagId(UIComponent parent, String id) By TagId, find Childstatic UIComponentfindChildInChildrenByTagId(UIComponent parent, String id) static UIComponentfindChildInFacetByTagId(UIComponent parent, String id, String facetName) static StringfindChildInFacetsByTagId(UIComponent parent, String id) static UIComponentfindComponentChildOrFacetFrom(UIComponent parent, String id, String innerExpr) static UIComponentfindComponentChildOrFacetFrom(FacesContext facesContext, UIComponent parent, String expr) static StringfindFacetNameByComponentInstance(UIComponent parent, UIComponent instance) static FaceletStategetFaceletState(FaceletContext ctx, UIComponent parent, boolean create) static StringgetFindComponentExpression(FacesContext facesContext, UIComponent component) static LocalegetLocale(FaceletContext ctx, TagAttribute attr) According to Faces 1.2 tag specs, this helper method will use the TagAttribute passed in determining the Locale intended.static UIViewRootgetViewRoot(FaceletContext ctx, UIComponent parent) Tries to walk up the parent to find the UIViewRoot, if not found, then go to FaceletContext's FacesContext for the view root.static voidmarkComponentToRefreshDynamically(FacesContext context, UIComponent component) static voidmarkComponentToRestoreFully(FacesContext context, UIComponent component) static voidremoveFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName) static voidremoveTransient(UIComponent component) static ObjectrestoreInitialTagState(FaceletContext ctx, FaceletCompositionContext fcc, UIComponent parent, String uniqueId) static voidsaveInitialTagState(FaceletContext ctx, FaceletCompositionContext fcc, UIComponent parent, String uniqueId, Object value) static voidsetCachedFacesContext(UIComponent component, FacesContext context) 
- 
Field Details- 
MARK_CREATED- See Also:
 
- 
FACET_CREATED_UIPANEL_MARKERThe UIPanel components, which are dynamically generated to serve as a container for facets with multiple non panel children, are marked with this attribute. This constant is duplicate in jakarta.faces.webapp.UIComponentClassicTagBase- See Also:
 
- 
COMPONENT_ADDED_BY_HANDLER_MARKERSpecial myfaces core marker to indicate the component is handled by a facelet tag handler, so its creation is not handled by user programatically and PSS remove listener should not register it when a remove happens.- See Also:
 
- 
FACELET_STATE_INSTANCEThe key under the facelet state map is stored- See Also:
 
 
- 
- 
Constructor Details- 
ComponentSupportpublic ComponentSupport()
 
- 
- 
Method Details- 
findChildA lighter-weight version of UIComponent's findChild.- Parameters:
- parent- parent to start searching from
- id- to match to
- Returns:
- UIComponent found or null
 
- 
findFacetNameByComponentInstance
- 
findChildInFacetByTagId
- 
findChildInChildrenByTagId
- 
findChildByTagIdBy TagId, find Child- Parameters:
- parent-
- id-
- Returns:
 
- 
findChildInFacetsByTagId
- 
getLocaleAccording to Faces 1.2 tag specs, this helper method will use the TagAttribute passed in determining the Locale intended.- Parameters:
- ctx- FaceletContext to evaluate from
- attr- TagAttribute representing a Locale
- Returns:
- Locale found
- Throws:
- TagAttributeException- if the Locale cannot be determined
 
- 
getViewRootTries to walk up the parent to find the UIViewRoot, if not found, then go to FaceletContext's FacesContext for the view root.- Parameters:
- ctx- FaceletContext
- parent- UIComponent to search from
- Returns:
- UIViewRoot instance for this evaluation
 
- 
encodeRecursivepublic static void encodeRecursive(FacesContext context, UIComponent toRender) throws IOException, FacesException - Throws:
- IOException
- FacesException
 
- 
removeTransient
- 
addFacetpublic static void addFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName) 
- 
removeFacetpublic static void removeFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName) 
- 
markComponentToRestoreFully
- 
markComponentToRefreshDynamically
- 
findComponentChildOrFacetFrompublic static UIComponent findComponentChildOrFacetFrom(FacesContext facesContext, UIComponent parent, String expr) 
- 
findComponentChildOrFacetFrompublic static UIComponent findComponentChildOrFacetFrom(UIComponent parent, String id, String innerExpr) 
- 
getFindComponentExpression
- 
restoreInitialTagStatepublic static Object restoreInitialTagState(FaceletContext ctx, FaceletCompositionContext fcc, UIComponent parent, String uniqueId) 
- 
saveInitialTagStatepublic static void saveInitialTagState(FaceletContext ctx, FaceletCompositionContext fcc, UIComponent parent, String uniqueId, Object value) 
- 
getFaceletState
- 
setCachedFacesContext
 
-