@Override public String getInfoClass() { String infoClass = super.getInfoClass(); return ComponentUtil.concatCssClasses(infoClass, INFO_CLASS_NAME); }
public static String doubleEscapeClientId(String clientId) { return ComponentUtil.escapeClientId(clientId); }
public String getLabel() { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == PhaseId.PROCESS_VALIDATIONS) { return ComponentUtil.getComponentLabel(this); } else { return null; } } }
public static String getComponentLabel(UIComponent uiComponent) { String componentLabel = null; if (uiComponent != null) { componentLabel = getParentFieldLabelValue(uiComponent); if (componentLabel == null) { componentLabel = getSiblingLabelValue((uiComponent)); } } return componentLabel; }
@Override public UIComponent matchComponentInHierarchy(FacesContext facesContext, UIComponent parent, String partialClientId) { return ComponentUtil.matchComponentInHierarchy(facesContext, parent, partialClientId); }
public static String findClientId(String expression) { return findClientId(FacesContext.getCurrentInstance(), expression); }
private static String getParentFieldLabelValue(UIComponent uiComponent) { String parentFieldLabel = null; if (uiComponent != null) { UIComponent parent = uiComponent.getParent(); if (parent != null) { Method method = null; try { method = parent.getClass().getMethod("getLabel", (Class<?>[]) null); } catch (NoSuchMethodException e) { // ignore } if (method != null) { try { parentFieldLabel = (String) method.invoke(parent, (Object[]) null); } catch (Exception e) { // ignore } } else { parentFieldLabel = getParentFieldLabelValue(parent); } } } return parentFieldLabel; }
public static String getComponentLabel(UIComponent uiComponent) { String componentLabel = null; if (uiComponent != null) { componentLabel = getParentFieldLabelValue(uiComponent); if (componentLabel == null) { componentLabel = getSiblingLabelValue((uiComponent)); } } return componentLabel; }
public UIComponent matchComponentInHierarchy(UIComponent parent, String partialClientId) { return ComponentUtil.matchComponentInHierarchy(FacesContext.getCurrentInstance(), parent, partialClientId); }
public static String findClientId(String expression) { return findClientId(FacesContext.getCurrentInstance(), expression); }
private static String getParentFieldLabelValue(UIComponent uiComponent) { String parentFieldLabel = null; if (uiComponent != null) { UIComponent parent = uiComponent.getParent(); if (parent != null) { Method method = null; try { method = parent.getClass().getMethod("getLabel", (Class<?>[]) null); } catch (NoSuchMethodException e) { // ignore } if (method != null) { try { parentFieldLabel = (String) method.invoke(parent, (Object[]) null); } catch (Exception e) { // ignore } } else { parentFieldLabel = getParentFieldLabelValue(parent); } } } return parentFieldLabel; }
@Override public String getErrorClass() { String errorClass = super.getErrorClass(); return ComponentUtil.concatCssClasses(errorClass, ERROR_CLASS_NAME); }
public String getLabel() { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == PhaseId.PROCESS_VALIDATIONS) { return ComponentUtil.getComponentLabel(this); } else { return null; } } }
protected void encodeClientIdProperty(ResponseWriter responseWriter, String propertyName, String clientId, boolean first) throws IOException { String escapedClientId = "'#" + ComponentUtil.escapeClientId(clientId) + "'"; encodeNonEscapedObjectProperty(responseWriter, propertyName, escapedClientId, first); }
public static String getComponentLabel(UIComponent uiComponent) { String componentLabel = null; if (uiComponent != null) { componentLabel = getParentFieldLabelValue(uiComponent); if (componentLabel == null) { componentLabel = getSiblingLabelValue((uiComponent)); } } return componentLabel; }
public UIComponent matchComponentInHierarchy(UIComponent parent, String partialClientId) { return ComponentUtil.matchComponentInHierarchy(FacesContext.getCurrentInstance(), parent, partialClientId); }
public static String findClientId(String expression) { return findClientId(FacesContext.getCurrentInstance(), expression); }
private static String getParentFieldLabelValue(UIComponent uiComponent) { String parentFieldLabel = null; if (uiComponent != null) { UIComponent parent = uiComponent.getParent(); if (parent != null) { Method method = null; try { method = parent.getClass().getMethod("getLabel", (Class<?>[]) null); } catch (NoSuchMethodException e) { // ignore } if (method != null) { try { parentFieldLabel = (String) method.invoke(parent, (Object[]) null); } catch (Exception e) { // ignore } } else { parentFieldLabel = getParentFieldLabelValue(parent); } } } return parentFieldLabel; }
@Override public String getFatalClass() { String fatalClass = super.getFatalClass(); return ComponentUtil.concatCssClasses(fatalClass, FATAL_CLASS_NAME); }
public String getLabel() { FacesContext facesContext = FacesContext.getCurrentInstance(); if (facesContext.getCurrentPhaseId() == PhaseId.PROCESS_VALIDATIONS) { return ComponentUtil.getComponentLabel(this); } else { return null; } } }