java.lang.Objectjavax.faces.render.ResponseStateManager
ResponseStateManager is the helper class to javax.faces.application.StateManager that knows the specific rendering technology being used to generate the response. It is a singleton abstract class, vended by the RenderKit . This class knows the mechanics of saving state, whether it be in hidden fields, session, or some combination of the two.
Field Summary | ||
---|---|---|
public static final String | RENDER_KIT_ID_PARAM | The name of the request parameter used by the default implementation of javax.faces.application.ViewHandler#calculateRenderKitId to derive a RenderKit ID. |
public static final String | VIEW_STATE_PARAM | Implementations must use this value as the name and id of the client parameter in which to save the state between requests. It is strongly recommend that implementations guard against cross site scripting attacks by at least making the value of this parameter difficult to predict.
|
Method from javax.faces.render.ResponseStateManager Summary: |
---|
getComponentStateToRestore, getState, getTreeStructureToRestore, getViewState, isPostback, writeState, writeState |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.faces.render.ResponseStateManager Detail: |
---|
Deprecated! This - method has been replaced by #getState .
The default implementation returns null .The implementation must inspect the current request and return
the component state Object passed to it on a previous invocation
of |
The implementation must inspect the current request and return an Object representing the tree structure and component state passed in to a previous invocation of #writeState(javax.faces.context.FacesContext,java.lang.Object) . For backwards compatability with existing
|
Deprecated! This - method has been replaced by #getState .
The default implementation returns null .The implementation must inspect the current request and return
the tree structure Object passed to it on a previous invocation of
|
Return the specified state as a |
Return true if the current request is a postback. This method
is leveraged from the Restore View Phase to determine if
javax.faces.application.ViewHandler#restoreView or javax.faces.application.ViewHandler#createView should be called.
The default implementation must return The implementation if this method for the Standard HTML
RenderKit must consult the javax.faces.context.ExternalContext 's
For backwards compatability with implementations of
|
|
Deprecated! This - method has been replaced by #writeState(javax.faces.context.FacesContext,java.lang.Object) .
The default implementation creates a two element
Object array with the first element being the return
from calling SerializedView#getStructure , and the second
being the return from SerializedView#getState . It then
passes this Object array to #writeState .Take the argument If the javax.faces.application.StateManager.SerializedView is to be written out to hidden fields, the implementation must take care to make all necessary character replacements to make the Strings suitable for inclusion as an HTTP request paramater. If the state saving method for this application is javax.faces.application.StateManager#STATE_SAVING_METHOD_CLIENT , the implementation may encrypt the state to be saved to the client. We recommend that the state be unreadable by the client, and also be tamper evident. The reference implementation follows these recommendations. |