public class ComponentUtils
extends org.primefaces.util.ComponentUtils
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escapeSelector(java.lang.String value)
NOTE: COPIED FROM TOBAGO.
|
static java.lang.Object |
getConvertedSubmittedValue(javax.faces.context.FacesContext fc,
javax.faces.component.EditableValueHolder evh) |
static javax.faces.render.Renderer |
getRenderer(javax.faces.context.FacesContext fc,
javax.faces.component.UIComponent component) |
static boolean |
isAjaxifiedComponent(javax.faces.component.UIComponent component) |
static java.util.Locale |
resolveLocale(java.lang.Object locale)
Gets a
Locale instance by the value of the component attribute "locale" which can be String or Locale or
null. |
static java.util.TimeZone |
resolveTimeZone(java.lang.Object timeZone)
Gets a
TimeZone instance by the parameter "timeZone" which can be String or TimeZone or null. |
escapeJQueryId, escapeText, escapeXml, findComponentClientId, findNavigationCase, findParentForm, getConverter, getResourceURL, getUIParams, getValueToRender, getValueToRender, isRTL, isSkipIteration, isValueBlank, processDecodesOfFacetsAndChilds, processUpdatesOfFacetsAndChilds, processValidatorsOfFacetsAndChilds, replaceNewLineWithHtml, resolveWidgetVar, resolveWidgetVar, resolveWidgetVar, toLocalepublic static java.lang.Object getConvertedSubmittedValue(javax.faces.context.FacesContext fc,
javax.faces.component.EditableValueHolder evh)
public static javax.faces.render.Renderer getRenderer(javax.faces.context.FacesContext fc,
javax.faces.component.UIComponent component)
public static boolean isAjaxifiedComponent(javax.faces.component.UIComponent component)
public static java.lang.String escapeSelector(java.lang.String value)
Puts two backslashes before #;&,.+*~':"!^$[]()=>|/ to escape them. Two are needed, because of JavaScript string literals. Puts three backslashes before a \ itself, to escape it.
It is used as EL function.public static java.util.Locale resolveLocale(java.lang.Object locale)
Locale instance by the value of the component attribute "locale" which can be String or Locale or
null. It can be used in any web projects as a helper method.locale - given localepublic static java.util.TimeZone resolveTimeZone(java.lang.Object timeZone)
TimeZone instance by the parameter "timeZone" which can be String or TimeZone or null.timeZone - given time zoneCopyright © 2011-2015. All Rights Reserved.