public class HtmlResponseStateManager extends MyfacesResponseStateManager
| Modifier and Type | Field and Description |
|---|---|
static String |
INIT_PARAM_AUTOCOMPLETE_OFF_VIEW_STATE
Add autocomplete="off" to the view state hidden field.
|
static String |
INIT_PARAM_HANDLE_STATE_CACHING_MECHANICS
Deprecated.
|
static String |
STANDARD_STATE_SAVING_PARAM |
CLIENT_WINDOW_PARAM, CLIENT_WINDOW_URL_PARAM, NON_POSTBACK_VIEW_TOKEN_PARAM, RENDER_KIT_ID_PARAM, VIEW_STATE_PARAM| Constructor and Description |
|---|
HtmlResponseStateManager() |
| Modifier and Type | Method and Description |
|---|---|
static String |
generateUpdateClientWindowId(FacesContext facesContext) |
static String |
generateUpdateViewStateId(FacesContext facesContext) |
String |
getCryptographicallyStrongTokenFromSession(FacesContext context) |
Object |
getState(FacesContext facesContext,
String viewId) |
protected StateCache |
getStateCache(FacesContext facesContext) |
String |
getViewState(FacesContext facesContext,
Object baseState) |
boolean |
isPostback(FacesContext context)
Checks if the current request is a postback
|
boolean |
isStateless(FacesContext context,
String viewId) |
boolean |
isWriteStateAfterRenderViewRequired(FacesContext facesContext)
Indicates if the call to ResponseStateManager.writeState should be done after the view is fully rendered.
|
void |
saveState(FacesContext facesContext,
Object state)
Execute additional operations like save the state on a cache when server
side state saving is used.
|
void |
writeState(FacesContext facesContext,
Object state) |
getComponentStateToRestore, getTreeStructureToRestore, writeStatepublic static final String STANDARD_STATE_SAVING_PARAM
@Deprecated @JSFWebConfigParam(since="2.0.6", expectedValues="true, false", defaultValue="true", group="state", deprecated=true) public static final String INIT_PARAM_HANDLE_STATE_CACHING_MECHANICS
This param is used to keep compatibility with previous state managers implementations depending from old myfaces way to deal with this. For example, JspStateManagerImpl requires this param set to false, but by default it is set to true, to keep aligned with the Reference Implementation (RI). Note also the default StateManagerImpl requires this property set to true in order to work correctly, so if you set this param to false, please remember to add an entry into your faces-config.xml setting up JspStateManagerImpl as the state manager to use.
@JSFWebConfigParam(since="2.2.8, 2.1.18, 2.0.24",
expectedValues="true, false",
defaultValue="true",
group="state")
public static final String INIT_PARAM_AUTOCOMPLETE_OFF_VIEW_STATE
public void writeState(FacesContext facesContext, Object state) throws IOException
writeState in class ResponseStateManagerIOExceptionpublic void saveState(FacesContext facesContext, Object state)
MyfacesResponseStateManagersaveState in class MyfacesResponseStateManagerpublic Object getState(FacesContext facesContext, String viewId)
getState in class ResponseStateManagerpublic boolean isPostback(FacesContext context)
isPostback in class ResponseStateManagerpublic String getViewState(FacesContext facesContext, Object baseState)
getViewState in class ResponseStateManagerpublic boolean isStateless(FacesContext context, String viewId)
isStateless in class ResponseStateManagerpublic String getCryptographicallyStrongTokenFromSession(FacesContext context)
getCryptographicallyStrongTokenFromSession in class ResponseStateManagerpublic boolean isWriteStateAfterRenderViewRequired(FacesContext facesContext)
MyfacesResponseStateManagerisWriteStateAfterRenderViewRequired in class MyfacesResponseStateManagerprotected StateCache getStateCache(FacesContext facesContext)
public static String generateUpdateClientWindowId(FacesContext facesContext)
public static String generateUpdateViewStateId(FacesContext facesContext)
Copyright © 2022 The Apache Software Foundation. All rights reserved.