public final class InputUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
InputUtils.ConverterLookupStrategy |
Modifier and Type | Method and Description |
---|---|
static javax.faces.convert.Converter |
findConverter(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
String property)
Returns
Converter based on a converter configured for provided UIComponent or returns converter for type referenced by given property's ValueExpression . |
static String |
getConvertedStringValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
InputUtils.ConverterLookupStrategy converterLookupStrategy,
Object value) |
static String |
getConvertedStringValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value) |
static Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
InputUtils.ConverterLookupStrategy converterLookupStrategy,
Object val) |
static Object |
getConvertedValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object val) |
static javax.faces.convert.Converter |
getConverterForType(javax.faces.context.FacesContext context,
Class<?> type)
Returns converter for given Java type
|
static String |
getInputValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
static String |
getInputValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
InputUtils.ConverterLookupStrategy converterLookupStrategy) |
static boolean |
isDisabled(javax.faces.component.UIComponent component) |
static boolean |
isReadOnly(javax.faces.component.UIComponent component) |
public static boolean isDisabled(javax.faces.component.UIComponent component)
public static boolean isReadOnly(javax.faces.component.UIComponent component)
public static javax.faces.convert.Converter getConverterForType(javax.faces.context.FacesContext context, Class<?> type)
public static String getConvertedStringValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
public static String getConvertedStringValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, InputUtils.ConverterLookupStrategy converterLookupStrategy, Object value) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
public static javax.faces.convert.Converter findConverter(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, String property)
Returns Converter
based on a converter configured for provided UIComponent
or returns converter for type referenced by given property's ValueExpression
.
If no converter applied for conditions above, null is returned instead.
public static Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object val) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
public static Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, InputUtils.ConverterLookupStrategy converterLookupStrategy, Object val) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
public static String getInputValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
public static String getInputValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, InputUtils.ConverterLookupStrategy converterLookupStrategy) throws javax.faces.convert.ConverterException
javax.faces.convert.ConverterException
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.