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.
@param context {@link FacesContext} for the current request
@param state the Serializable state to be written,as returned by {@link #saveSerializedView}
@since 1.2