Encapsulate the saving and restoring of the view to enable the VDL to take over the responsibility for handling this feature.
Implementations must call jakarta. on the
jakarta. to perform the saving and restoring of the view in the saveView
and restoreView methods, respectively.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract UIViewRoot | Returns: the root of the restored viewthe context, String FacesContext for this requestthe view identifier for which the state should be restored viewId, String the render kit id for this state. renderKitId)Restore the state of the view with information in the request. |
| public abstract Object | Returns: the saved view statethe context)FacesContext for this request.
Return the state of the current view in an |
| StateManagementStrategy | back to summary |
|---|---|
| public StateManagementStrategy() | |
| restoreView | back to summary |
|---|---|
| public abstract UIViewRoot restoreView(FacesContext context, String viewId, String renderKitId) Restore the state of the view with information in the request. The default implementation must perform the following algorithm or its semantic equivalent.
The implementation must ensure that the
| |
| saveView | back to summary |
|---|---|
| public abstract Object saveView(FacesContext context)
Return the state of the current view in an
The implementation must ensure that the
The data structure used to save the state obtained by executing the above algorithm must be
| |