Class ComponentSupport
- java.lang.Object
- 
- org.apache.myfaces.view.facelets.tag.faces.ComponentSupport
 
- 
 public final class ComponentSupport extends Object - Version:
- $Id$
- Author:
- Jacob Hookom
 
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCOMPONENT_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.static StringFACELET_STATE_INSTANCEThe key under the facelet state map is storedstatic StringFACET_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.static StringMARK_CREATED
 - 
Constructor SummaryConstructors Constructor Description ComponentSupport()
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
MARK_CREATEDpublic static final String MARK_CREATED - See Also:
- Constant Field Values
 
 - 
FACET_CREATED_UIPANEL_MARKERpublic static final String FACET_CREATED_UIPANEL_MARKER The 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:
- Constant Field Values
 
 - 
COMPONENT_ADDED_BY_HANDLER_MARKERpublic static final String COMPONENT_ADDED_BY_HANDLER_MARKER Special 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:
- Constant Field Values
 
 - 
FACELET_STATE_INSTANCEpublic static final String FACELET_STATE_INSTANCE The key under the facelet state map is stored- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
findChildpublic static UIComponent findChild(UIComponent parent, String id) A lighter-weight version of UIComponent's findChild.- Parameters:
- parent- parent to start searching from
- id- to match to
- Returns:
- UIComponent found or null
 
 - 
findFacetNameByComponentInstancepublic static String findFacetNameByComponentInstance(UIComponent parent, UIComponent instance) 
 - 
findChildInFacetByTagIdpublic static UIComponent findChildInFacetByTagId(UIComponent parent, String id, String facetName) 
 - 
findChildInChildrenByTagIdpublic static UIComponent findChildInChildrenByTagId(UIComponent parent, String id) 
 - 
findChildByTagIdpublic static UIComponent findChildByTagId(UIComponent parent, String id) By TagId, find Child- Parameters:
- parent-
- id-
- Returns:
 
 - 
findChildInFacetsByTagIdpublic static String findChildInFacetsByTagId(UIComponent parent, String id) 
 - 
getLocalepublic static Locale getLocale(FaceletContext ctx, TagAttribute attr) throws TagAttributeException According to JSF 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
 
 - 
getViewRootpublic static UIViewRoot getViewRoot(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.- 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
 
 - 
removeTransientpublic static void removeTransient(UIComponent component) 
 - 
addFacetpublic static void addFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName) 
 - 
removeFacetpublic static void removeFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName) 
 - 
markComponentToRestoreFullypublic static void markComponentToRestoreFully(FacesContext context, UIComponent component) 
 - 
markComponentToRefreshDynamicallypublic static void markComponentToRefreshDynamically(FacesContext context, UIComponent component) 
 - 
findComponentChildOrFacetFrompublic static UIComponent findComponentChildOrFacetFrom(FacesContext facesContext, UIComponent parent, String expr) 
 - 
findComponentChildOrFacetFrompublic static UIComponent findComponentChildOrFacetFrom(UIComponent parent, String id, String innerExpr) 
 - 
getFindComponentExpressionpublic static String getFindComponentExpression(FacesContext facesContext, UIComponent component) 
 - 
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) 
 - 
getFaceletStatepublic static FaceletState getFaceletState(FaceletContext ctx, UIComponent parent, boolean create) 
 - 
setCachedFacesContextpublic static void setCachedFacesContext(UIComponent component, FacesContext context) 
 
- 
 
-