public class CdiConverter extends Object implements javax.faces.convert.Converter, javax.faces.component.StateHolder
Constructor and Description |
---|
CdiConverter()
Constructor.
|
CdiConverter(String converterId,
Class forClass,
javax.faces.convert.Converter delegate)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
String value)
Get the object.
|
String |
getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
Object value)
Get the string representation.
|
boolean |
isTransient()
Is the converter transient.
|
void |
restoreState(javax.faces.context.FacesContext facesContext,
Object state)
Restore the state.
|
Object |
saveState(javax.faces.context.FacesContext facesContext)
Save the state.
|
void |
setTransient(boolean transientValue)
Set the converter to transient.
|
public Object getAsObject(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, String value)
getAsObject
in interface javax.faces.convert.Converter
facesContext
- the Faces context.component
- the UI component.value
- the value.public String getAsString(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, Object value)
getAsString
in interface javax.faces.convert.Converter
facesContext
- the Faces context.component
- the UI component.value
- the value.public Object saveState(javax.faces.context.FacesContext facesContext)
saveState
in interface javax.faces.component.StateHolder
facesContext
- the Faces context.public void restoreState(javax.faces.context.FacesContext facesContext, Object state)
restoreState
in interface javax.faces.component.StateHolder
facesContext
- the Faces context.state
- the state.public boolean isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void setTransient(boolean transientValue)
We ignore the call as our proxy is always non-transient.
setTransient
in interface javax.faces.component.StateHolder
transientValue
- Copyright © 2010–2019 JBoss by Red Hat. All rights reserved.