com.ibm.xsp.converter
Class ListConverter

java.lang.Object
  extended by com.ibm.xsp.converter.ListConverter
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.convert.Converter

public class ListConverter
extends java.lang.Object
implements javax.faces.convert.Converter, javax.faces.component.StateHolder

The xp:convertList tag converts the from a String to a List, or from a List to a String. The String values are separated "," or by the configured delimiter.


Constructor Summary
ListConverter()
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
          Return value as an Object.
 java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
          Return value as a String.
 java.lang.String getDelimiter()
          Return the delimiter specified by setDelimiter(String)
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setDelimiter(java.lang.String delimiter)
          Specifies the delimiter to use between values
 void setTransient(boolean isTransient)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListConverter

public ListConverter()
Method Detail

getDelimiter

public java.lang.String getDelimiter()
Return the delimiter specified by setDelimiter(String)


setDelimiter

public void setDelimiter(java.lang.String delimiter)
Specifies the delimiter to use between values


getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.String value)
Return value as an Object.

Specified by:
getAsObject in interface javax.faces.convert.Converter

getAsString

public java.lang.String getAsString(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.Object value)
Return value as a String.

Specified by:
getAsString in interface javax.faces.convert.Converter

isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean isTransient)
Specified by:
setTransient in interface javax.faces.component.StateHolder

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder