public class DelegateConverter extends Object implements Converter, StateHolder
<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.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
Constructor and Description |
---|
DelegateConverter() |
DelegateConverter(jakarta.el.ValueExpression id,
jakarta.el.ValueExpression binding,
String converterIdString) |
Modifier and Type | Method and Description |
---|---|
Object |
getAsObject(FacesContext facesContext,
UIComponent component,
String value) |
String |
getAsString(FacesContext facesContext,
UIComponent component,
Object value) |
boolean |
isTransient() |
void |
restoreState(FacesContext facesContext,
Object state) |
Object |
saveState(FacesContext facesContext) |
void |
setTransient(boolean arg0) |
public DelegateConverter()
public DelegateConverter(jakarta.el.ValueExpression id, jakarta.el.ValueExpression binding, String converterIdString)
public boolean isTransient()
isTransient
in interface StateHolder
public void restoreState(FacesContext facesContext, Object state)
restoreState
in interface StateHolder
public Object saveState(FacesContext facesContext)
saveState
in interface StateHolder
public void setTransient(boolean arg0)
setTransient
in interface StateHolder
public Object getAsObject(FacesContext facesContext, UIComponent component, String value)
getAsObject
in interface Converter
public String getAsString(FacesContext facesContext, UIComponent component, Object value)
getAsString
in interface Converter
Copyright © 2020 The Apache Software Foundation. All rights reserved.