public class CdiConverter extends Object implements Converter, StateHolder
DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE_PARAM_NAME
Constructor and Description |
---|
CdiConverter()
Constructor.
|
CdiConverter(String converterId,
Class forClass,
Converter delegate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAsObject(FacesContext facesContext,
UIComponent component,
String value)
Get the object.
|
String |
getAsString(FacesContext facesContext,
UIComponent component,
Object value)
Get the string representation.
|
boolean |
isTransient()
Is the converter transient.
|
void |
restoreState(FacesContext facesContext,
Object state)
Restore the state.
|
Object |
saveState(FacesContext facesContext)
Save the state.
|
void |
setTransient(boolean transientValue)
Set the converter to transient.
|
public Object getAsObject(FacesContext facesContext, UIComponent component, String value)
getAsObject
in interface Converter
facesContext
- the Faces context.component
- the UI component.value
- the value.public String getAsString(FacesContext facesContext, UIComponent component, Object value)
getAsString
in interface Converter
facesContext
- the Faces context.component
- the UI component.value
- the value.public Object saveState(FacesContext facesContext)
saveState
in interface StateHolder
facesContext
- the Faces context.public void restoreState(FacesContext facesContext, Object state)
restoreState
in interface StateHolder
facesContext
- the Faces context.state
- the state.public boolean isTransient()
isTransient
in interface StateHolder
public void setTransient(boolean transientValue)
We ignore the call as our proxy is always non-transient.
setTransient
in interface StateHolder
transientValue
- Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.