org.apache.myfaces.taglib.core
Class DelegateConverter
java.lang.Object
org.apache.myfaces.taglib.core.DelegateConverter
- All Implemented Interfaces:
- javax.faces.component.StateHolder, javax.faces.convert.Converter
public class DelegateConverter
- extends java.lang.Object
- implements javax.faces.convert.Converter, javax.faces.component.StateHolder
This class is used in conjunction with ConverterImplTag.
When a tag like this is in a jsp page:
or
The value of mybean could be already on the context, so this
converter avoid creating a new variable and use the previous one.
- Version:
- $Revision: 600199 $ $Date: 2007-12-01 16:28:15 -0500 (Sat, 01 Dec 2007) $
- Author:
- Leonardo Uribe (latest modification by $Author: lu4242 $)
Method Summary |
java.lang.Object |
getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
java.lang.String value)
|
java.lang.String |
getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
java.lang.Object value)
|
boolean |
isTransient()
|
void |
restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setTransient(boolean arg0)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelegateConverter
public DelegateConverter()
DelegateConverter
public DelegateConverter(javax.el.ValueExpression id,
javax.el.ValueExpression binding,
java.lang.String converterIdString)
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interface javax.faces.component.StateHolder
restoreState
public void restoreState(javax.faces.context.FacesContext facesContext,
java.lang.Object state)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
setTransient
public void setTransient(boolean arg0)
- Specified by:
setTransient
in interface javax.faces.component.StateHolder
getAsObject
public java.lang.Object getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
java.lang.String value)
- Specified by:
getAsObject
in interface javax.faces.convert.Converter
getAsString
public java.lang.String getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
java.lang.Object value)
- Specified by:
getAsString
in interface javax.faces.convert.Converter
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.