public class ComponentUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
RD_ID_PREFIX |
static String[] |
UNIQUE_COMPONENT_RD_IDS |
static int |
UNIQUE_COMPONENT_RD_IDS_SIZE |
static String[] |
UNIQUE_COMPONENT_V_IDS |
static int |
UNIQUE_COMPONENT_V_IDS_SIZE |
static String |
V_ID_PREFIX |
public static final String V_ID_PREFIX
public static final String RD_ID_PREFIX
public static final int UNIQUE_COMPONENT_V_IDS_SIZE
public static final int UNIQUE_COMPONENT_RD_IDS_SIZE
public static final String[] UNIQUE_COMPONENT_V_IDS
public static final String[] UNIQUE_COMPONENT_RD_IDS
public static UIComponent findClosestNamingContainer(UIComponent component, boolean returnRootIfNotFound)
public static <T> T findClosest(Class<T> type, UIComponent base)
public static UIComponent findRootComponent(UIComponent component)
public static UIComponent findComponent(UIComponent findBase, String id, char separatorChar)
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.
public static UIComponent findComponentChildOrFacetFrom(UIComponent parent, String id, String innerExpr)
public static void callValidators(FacesContext context, UIInput input, Object convertedValue)
public static String getPathToComponent(UIComponent component)
public static boolean isRendered(FacesContext facesContext, UIComponent uiComponent)
UIComponent.pushComponentToEL(javax.faces.context.FacesContext,javax.faces.component.UIComponent)
,
reads the isRendered property, call UIComponent.popComponentFromEL(javax.faces.context.FacesContext)
and returns the value of isRendered.public static void getPathToComponent(UIComponent component, StringBuilder buf)
Copyright © 2021 The Apache Software Foundation. All rights reserved.