Restore the tree structure and the component state of the view for the specified viewId
, in an implementation dependent manner, and return the restored {@link UIViewRoot}. If there is no saved state information available for this viewId
, return null
instead.
This method must consult the context initialization parameter named by the symbolic constant StateManager.STATE_SAVING_METHOD_PARAMETER_NAME
to determine whether state should be saved on the client or the server. If not present, client side state saving is assumed.
If the init parameter indicates that client side state saving should be used, this method must call the getTreeStructureToRestore()
and (if the previous method call returned a non-null value) getComponentStateToRestore()
methods of the {@link ResponseStateManager} instance provided by the{@link RenderKit} responsible for this view.
@param context {@link FacesContext} for the current request
@param viewId View identifier of the view to be restored
@param renderKitId the renderKitId used to render this response.Must not be
null
.
@throws IllegalArgumentException if
renderKitId
is
null
.