com.sun.faces.application
public class PropertyEditorHelper extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private javax.faces.application.Application |
app |
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.
|
java.lang.Object |
convertToObject(java.lang.Class<?> targetClass,
java.lang.String textValue)
Convert the
textValue to an object of type targetClass by
delegating to a converter. |
java.lang.String |
convertToString(java.lang.Class<?> targetClass,
java.lang.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 java.lang.Object convertToObject(java.lang.Class<?> targetClass, java.lang.String textValue)
textValue
to an object of type targetClass by
delegating to a converter.public java.lang.String convertToString(java.lang.Class<?> targetClass, java.lang.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 © 2002-2010 Oracle America, Inc. All Rights Reserved.