|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.mindmatters.faces.component.StateHolderStateBuilder
Serializes/deserializes the state of the given StateHolder
stateHolder. Also serializes declared
non-serializable fields of the given StateHolder - so
serialization is independent of the configured state-saving method.
The state is saved into the session by a globally unique key.
UIComponents,
Converters and
Validators serialized/deserialized by this
builder can hold their own state within multiple browser windows with
server-side state-saving (famous bug of sun's jsf RI and myFaces jsf
implementation).
StateHolder,
RandomGuid| Method Summary | |
void |
restoreState(FacesContext context,
java.lang.Object state)
Deserializes the given state into the internal StateHolder
stateHolder. |
static void |
restoreState(StateHolder stateHolder,
FacesContext context,
java.lang.Object state)
Deserializes the given state into the given StateHolder
stateHolder. |
java.lang.Object |
saveState(FacesContext context)
Serializes the state of the internal StateHolder stateHolder. |
static java.lang.Object |
saveState(StateHolder stateHolder,
FacesContext context)
Serializes the state of the given StateHolder stateHolder. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static java.lang.Object saveState(StateHolder stateHolder,
FacesContext context)
stateHolder.
stateHolder - object to serializecontext - the FacesContext
public static void restoreState(StateHolder stateHolder,
FacesContext context,
java.lang.Object state)
state into the given StateHolder
stateHolder.
stateHolder - object to deserialize intocontext - the FacesContextstate - the globally unique key pointing to the serialized state in
the sessionpublic java.lang.Object saveState(FacesContext context)
stateHolder.
context - the FacesContext
public void restoreState(FacesContext context,
java.lang.Object state)
state into the internal StateHolder
stateHolder.
context - the FacesContextstate - the globally unique key pointing to the serialized state of
the internal StateHolder in the session
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||