Package org.apache.myfaces.taglib.core
Class DelegateConverter
- java.lang.Object
-
- org.apache.myfaces.taglib.core.DelegateConverter
-
- All Implemented Interfaces:
StateHolder,Converter
public class DelegateConverter extends Object implements Converter, StateHolder
This class is used in conjunction with ConverterImplTag. When a tag like this is in a jsp page:<f:converter binding="#{mybean}"/> or <f:converter converterId="#{'anyid'}" binding="#{mybean}"/>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$ $Date$
- Author:
- Leonardo Uribe (latest modification by $Author$)
-
-
Field Summary
-
Fields inherited from interface javax.faces.convert.Converter
DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
-
-
Constructor Summary
Constructors Constructor Description DelegateConverter()DelegateConverter(javax.el.ValueExpression id, javax.el.ValueExpression binding, String converterIdString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetAsObject(FacesContext facesContext, UIComponent component, String value)StringgetAsString(FacesContext facesContext, UIComponent component, Object value)booleanisTransient()voidrestoreState(FacesContext facesContext, Object state)ObjectsaveState(FacesContext facesContext)voidsetTransient(boolean arg0)
-
-
-
Constructor Detail
-
DelegateConverter
public DelegateConverter()
-
DelegateConverter
public DelegateConverter(javax.el.ValueExpression id, javax.el.ValueExpression binding, String converterIdString)
-
-
Method Detail
-
isTransient
public boolean isTransient()
- Specified by:
isTransientin interfaceStateHolder
-
restoreState
public void restoreState(FacesContext facesContext, Object state)
- Specified by:
restoreStatein interfaceStateHolder
-
saveState
public Object saveState(FacesContext facesContext)
- Specified by:
saveStatein interfaceStateHolder
-
setTransient
public void setTransient(boolean arg0)
- Specified by:
setTransientin interfaceStateHolder
-
getAsObject
public Object getAsObject(FacesContext facesContext, UIComponent component, String value)
- Specified by:
getAsObjectin interfaceConverter
-
getAsString
public String getAsString(FacesContext facesContext, UIComponent component, Object value)
- Specified by:
getAsStringin interfaceConverter
-
-