public class PropertyEditorHelper extends Object
| Constructor and Description |
|---|
PropertyEditorHelper(Application app) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConversionErrorMessage(FacesContext context,
UIComponent component,
ConverterException ce)
Add a conversion error message in the case of a PropertyEditor based conversion error.
|
Object |
convertToObject(Class<?> targetClass,
String textValue)
Convert the
textValue to an object of type targetClass by delegating to a converter. |
String |
convertToString(Class<?> targetClass,
Object value)
Convert an object of type targetClass to text by delegating to a converter obtained from the Faces application.
|
protected UIComponent |
getComponent()
Return the
UIComponent that is currently being processed. |
public PropertyEditorHelper(Application app)
public Object convertToObject(Class<?> targetClass, String textValue)
textValue to an object of type targetClass by delegating to a converter.public String convertToString(Class<?> targetClass, Object value)
protected UIComponent getComponent()
UIComponent that is currently being processed.protected void addConversionErrorMessage(FacesContext context, UIComponent component, ConverterException ce)
context - component - ce - Copyright © 1997–2020 Eclipse Foundation. All rights reserved.