Class ComponentUtils
java.lang.Object
org.apache.myfaces.core.api.shared.ComponentUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic void
callValidators
(FacesContext context, UIInput input, Object convertedValue) static <T> T
findClosest
(Class<T> type, UIComponent base) static UIComponent
findClosestNamingContainer
(UIComponent component, boolean returnRootIfNotFound) static UIComponent
findComponent
(UIComponent findBase, String id, char separatorChar) Find the component with the specified id starting from the specified component.static UIComponent
findComponentChildOrFacetFrom
(UIComponent parent, String id, String innerExpr) static UIComponent
findRootComponent
(UIComponent component) static String
getPathToComponent
(UIComponent component) static void
getPathToComponent
(UIComponent component, StringBuilder buf) static boolean
isRendered
(FacesContext facesContext, UIComponent uiComponent) CallUIComponent.pushComponentToEL(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)
, reads the isRendered property, callUIComponent.popComponentFromEL(jakarta.faces.context.FacesContext)
and returns the value of isRendered.
-
Field Details
-
V_ID_PREFIX
- See Also:
-
RD_ID_PREFIX
- See Also:
-
UNIQUE_COMPONENT_V_IDS_SIZE
public static final int UNIQUE_COMPONENT_V_IDS_SIZE- See Also:
-
UNIQUE_COMPONENT_RD_IDS_SIZE
public static final int UNIQUE_COMPONENT_RD_IDS_SIZE- See Also:
-
UNIQUE_COMPONENT_V_IDS
-
UNIQUE_COMPONENT_RD_IDS
-
-
Method Details
-
findClosestNamingContainer
public static UIComponent findClosestNamingContainer(UIComponent component, boolean returnRootIfNotFound) -
findClosest
-
findRootComponent
-
findComponent
Find the component with the specified id starting from the specified component.Param id must not contain any NamingContainer.SEPARATOR_CHAR characters (ie ":"). This method explicitly does not search into any child naming container components; this is expected to be handled by the caller of this method.
- Returns:
- findBase, a descendant of findBase, or null.
-
findComponentChildOrFacetFrom
public static UIComponent findComponentChildOrFacetFrom(UIComponent parent, String id, String innerExpr) -
callValidators
-
getPathToComponent
-
isRendered
CallUIComponent.pushComponentToEL(jakarta.faces.context.FacesContext, jakarta.faces.component.UIComponent)
, reads the isRendered property, callUIComponent.popComponentFromEL(jakarta.faces.context.FacesContext)
and returns the value of isRendered. -
getPathToComponent
-