Name
Converter
Synopsis
This interface is implemented by all converter classes, converting between a String value and a data type supported by the class.
Synopsis
Interface name: |
javax.faces.convert.Converter |
Extends: |
None |
Implemented by: |
All standard and custom converters. |
Methods
-
public Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
Converts the provided
String
value (which can benull
) to an instance of the supported type and returns the new instance. Throws aConverterException
if the conversion fails.-
public String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
Converts the provided value of the supported type (which can be
null
) to aString
instance and returns the new instance. Throws aConverterException
if the conversion fails.
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.