Save the state represented in the specified state Object
instance, in an implementation dependent manner.
This method will typically simply delegate the actual writing to the writeState()
method of the {@link ResponseStateManager} instance provided by the{@link RenderKit} being used to render this view. Thismethod assumes that the caller has positioned the {@link ResponseWriter} at the correct position for thesaved state to be written.
For backwards compatability with existing StateManager
implementations, the default implementation of this method checks if the argument is an instance of Object []
of length greater than or equal to two. If so, it creates a SerializedView
instance with the tree structure coming from element zero and the component state coming from element one and calls through to {@link #writeState(javax.faces.context.FacesContext,javax.faces.application.StateManager.SerializedView)}. If not, does nothing.
Take any appropriate action to either immediately write out the current state information (by calling {@link StateManager#writeState}, or noting where state information should later be written.
@param context {@link FacesContext} for the current request @throws IOException if an input/output error occurs @throws NullPointerException ifcontext
is null
|
|