Class ComponentUtils
java.lang.Object
org.apache.myfaces.core.api.shared.ComponentUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcallValidators(FacesContext context, UIInput input, Object convertedValue) static <T> TfindClosest(Class<T> type, UIComponent base) static UIComponentfindClosestNamingContainer(UIComponent component, boolean returnRootIfNotFound) static UIComponentfindComponent(UIComponent findBase, String id, char separatorChar) Find the component with the specified id starting from the specified component.static UIComponentfindComponentChildOrFacetFrom(UIComponent parent, String id, String innerExpr) static UIComponentfindRootComponent(UIComponent component) static StringgetPathToComponent(UIComponent component) static voidgetPathToComponent(UIComponent component, StringBuilder buf) static booleanisRendered(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
-