public class PropertyEditorHelper extends Object
Constructor and Description |
---|
PropertyEditorHelper(javax.faces.application.Application app) |
Modifier and Type | Method and Description |
---|---|
protected void |
addConversionErrorMessage(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
javax.faces.convert.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 javax.faces.component.UIComponent |
getComponent()
Return the
UIComponent that is currently being
processed. |
public PropertyEditorHelper(javax.faces.application.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 javax.faces.component.UIComponent getComponent()
UIComponent
that is currently being
processed.protected void addConversionErrorMessage(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, javax.faces.convert.ConverterException ce)
context
- component
- ce
- Copyright © 2010–2019 JBoss by Red Hat. All rights reserved.