Calculate the token to be used if server side state saving, or encode the view and return the
viewState that can be used by the underlying ResponseStateManager to write the state.
state - The state that will be used to derive the token returned.
A token (usually encoded on javax.faces.ViewState input hidden field) that will be passed to
ResponseStateManager.writeState or ResponseStateManager.getViewState to be
output to the client.
public abstract boolean isWriteStateAfterRenderViewRequired(FacesContext facesContext)
Indicates if the call to ResponseStateManager.writeState should be done after the view is fully rendered.
Usually this is required for client side state saving, but it is not for server side state saving, because
ResponseStateManager.writeState could render a just a marker and then StateManager.saveState could be called,
preventing use an additional buffer.