|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.primefaces.util.ComponentUtils
public class ComponentUtils
Constructor Summary | |
---|---|
ComponentUtils()
|
Method Summary | |
---|---|
static List<javax.faces.model.SelectItem> |
createSelectItems(javax.faces.component.UIComponent component)
|
static void |
decorateAttribute(javax.faces.component.UIComponent component,
String attribute,
String value)
|
static String |
escapeJQueryId(String id)
|
static String |
findClientIds(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String list)
|
static javax.faces.component.UIComponent |
findComponent(javax.faces.component.UIComponent base,
String id)
|
static String |
findComponentClientId(String id)
|
static javax.faces.component.UIComponent |
findParentForm(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
static javax.faces.component.UIComponent |
findParentNamingContainer(javax.faces.component.UIComponent component)
|
static javax.faces.component.UniqueIdVendor |
findParentUniqueIdVendor(javax.faces.component.UIComponent component)
|
static javax.faces.convert.Converter |
getConverter(javax.faces.context.FacesContext context,
javax.faces.component.ValueHolder component)
Finds appropriate converter for a given value holder |
static String |
getStringValueToRender(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
Object value)
Resolves the end text to render by using a specified value |
static String |
getValueToRender(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Algorithm works as follows; - If it's an input component, submitted value is checked first since it'd be the value to be used in case validation errors terminates jsf lifecycle - Finally the value of the component is retrieved from backing bean and if there's a converter, converted value is returned |
static String |
getWidgetVar(String id)
|
static boolean |
isBeansValidationAvailable(javax.faces.context.FacesContext context)
|
static boolean |
isLiteralText(javax.faces.component.UIComponent component)
|
static boolean |
isPartialSubmitEnabled(javax.faces.context.FacesContext context)
|
static boolean |
isValueBlank(String value)
|
static Locale |
toLocale(String str)
Implementation from Apache Commons Lang |
static boolean |
validateEmptyFields(javax.faces.context.FacesContext context)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentUtils()
Method Detail |
---|
public static String getValueToRender(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
context
- FacesContext instancecomponent
- UIComponent instance whose value will be returned
public static javax.faces.convert.Converter getConverter(javax.faces.context.FacesContext context, javax.faces.component.ValueHolder component)
context
- FacesContext instancecomponent
- ValueHolder instance to look converter for
public static String getStringValueToRender(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, Object value)
context
- FacesContext instancecomponent
- UIComponent instance whose value will be returned
public static javax.faces.component.UIComponent findParentForm(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
public static javax.faces.component.UniqueIdVendor findParentUniqueIdVendor(javax.faces.component.UIComponent component)
public static javax.faces.component.UIComponent findParentNamingContainer(javax.faces.component.UIComponent component)
public static void decorateAttribute(javax.faces.component.UIComponent component, String attribute, String value)
public static List<javax.faces.model.SelectItem> createSelectItems(javax.faces.component.UIComponent component)
public static String escapeJQueryId(String id)
public static String findClientIds(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String list)
public static String findComponentClientId(String id)
public static javax.faces.component.UIComponent findComponent(javax.faces.component.UIComponent base, String id)
public static String getWidgetVar(String id)
public static boolean isLiteralText(javax.faces.component.UIComponent component)
public static Locale toLocale(String str)
public static boolean validateEmptyFields(javax.faces.context.FacesContext context)
public static boolean isBeansValidationAvailable(javax.faces.context.FacesContext context)
public static boolean isPartialSubmitEnabled(javax.faces.context.FacesContext context)
public static boolean isValueBlank(String value)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |