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