public interface TransientStateHolder
This interface is implemented by classes that need to save state that is expected to be available only within the scope of the current request.
An implementor must implement both
restoreTransientState(javax.faces.context.FacesContext, java.lang.Object) methods in this class, since
these two methods have a tightly coupled contract between themselves.
In other words, if there is an inheritance hierarchy, it is not
permissible to have the
methods reside at different levels of the hierarchy.
An example of transient state is the "submitted" property on forms.
Object saveTransientState(FacesContext context)
Return the object containing related "transient states". that could be used later to restore the "transient state".
void restoreTransientState(FacesContext context, Object state)
Restore the "transient state" using the object passed as state.
null clear any previous transient
state if any and return.
state- the object containing transient values
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.