org.apache.myfaces.custom.dynaForm.lib
Class ObjectSerializationConverter

java.lang.Object
  extended by org.apache.myfaces.custom.dynaForm.lib.ObjectSerializationConverter
All Implemented Interfaces:
javax.faces.convert.Converter

public class ObjectSerializationConverter
extends java.lang.Object
implements javax.faces.convert.Converter

This converter will be used to e.g. render a selection menu.
It is responsible to convert a object to a string-identifier representation with which it is possible to recreate the object again - aka serialization


Field Summary
static NullObject SELECT_NULL_OBJECT
           
 
Constructor Summary
ObjectSerializationConverter()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SELECT_NULL_OBJECT

public static final NullObject SELECT_NULL_OBJECT
Constructor Detail

ObjectSerializationConverter

public ObjectSerializationConverter()
Method Detail

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 © 2009. All Rights Reserved.