org.apache.myfaces.orchestra.lib.jsf
Class SerializableConverter

java.lang.Object
  extended by org.apache.myfaces.orchestra.lib.jsf.SerializableConverter
All Implemented Interfaces:
java.io.Serializable, javax.faces.convert.Converter

public class SerializableConverter
extends java.lang.Object
implements javax.faces.convert.Converter, java.io.Serializable

Wraps a converter and serialize just its id to make it serializable.

See Also:
Serialized Form

Constructor Summary
SerializableConverter(java.lang.String converterId)
           
SerializableConverter(java.lang.String converterId, javax.faces.convert.Converter converter)
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
           
 java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
           
protected  javax.faces.convert.Converter getConverter()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableConverter

public SerializableConverter(java.lang.String converterId)

SerializableConverter

public SerializableConverter(java.lang.String converterId,
                             javax.faces.convert.Converter converter)
Method Detail

getConverter

protected javax.faces.convert.Converter getConverter()

getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.String value)
                             throws javax.faces.convert.ConverterException
Specified by:
getAsObject in interface javax.faces.convert.Converter
Throws:
javax.faces.convert.ConverterException

getAsString

public java.lang.String getAsString(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.Object value)
                             throws javax.faces.convert.ConverterException
Specified by:
getAsString in interface javax.faces.convert.Converter
Throws:
javax.faces.convert.ConverterException


Copyright 2007 The Apache Software Foundation. All Rights Reserved.