Name
StateManager
Synopsis
An instance of a subclass of
this
abstract class
is invoked to save and restore the state for a view, typically in
cooperation with an instance of the
javax.faces.render.ResponseStateManager
for
client-side state saving.
Synopsis
Class name: |
javax.faces.application.StateManager |
Extends: |
None |
Implements: |
None |
Fields
-
public static final String STATE_SAVING_METHOD_CLIENT
The client-side choice value for the state-saving method selection context initialization parameter:
client
.-
public static final String STATE_SAVING_METHOD_PARAM
The name of the state-saving selection context initialization parameter:
javax.faces.STATE_SAVING_METHOD
.-
public static final String STATE_SAVING_METHOD_SERVER
The server-side choice value for the state-saving method selection context initialization parameter:
server
.
Constructors
-
public StateManager()
Creates an instance.
Methods
-
protected abstract Object getComponentStateToSave(javax.faces.context.FacesContext context)
Returns a
Serializable
object representing the state of all components and their attached objects.-
protected abstract Object getTreeStructureToSave(javax.faces.context.FacesContext context)
Returns a
Serializable
object representing the component tree structure, i.e., the parent-child relationship for all components and facets in the view.-
public boolean isSavingStateInClient()
Returns
true
if theSTATE_SAVING_METHOD_PARAM
context initialization parameter has the valueSTATE_SAVING_METHOD_CLIENT
.-
protected abstract ...
Get JavaServer Faces now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.