java.lang.Objectjavax.faces.application.ViewHandler
Direct Known Subclasses:
ViewHandlerWrapper
ViewHandler is the pluggablity mechanism for allowing implementations of or applications using the JavaServer Faces specification to provide their own handling of the activities in the Render Response and Restore View phases of the request processing lifecycle. This allows for implementations to support different response generation technologies, as well as alternative strategies for saving and restoring the state of each view.
Please see StateManager for information on how the
ViewHandler interacts the StateManager .
| Field Summary | ||
|---|---|---|
| public static final String | CHARACTER_ENCODING_KEY | The key, in the session's attribute set, under which the response character encoding may be stored and retrieved. |
| public static final String | DEFAULT_SUFFIX_PARAM_NAME | Allow the web application to define an alternate suffix for pages containing JSF content. If this init parameter is not specified, the default value is taken from the value of the constant #DEFAULT_SUFFIX . |
| public static final String | DEFAULT_SUFFIX | The value to use for the default extension if the webapp is using url extension mapping. |
| Method from javax.faces.application.ViewHandler Summary: |
|---|
| calculateCharacterEncoding, calculateLocale, calculateRenderKitId, createView, getActionURL, getResourceURL, initView, renderView, restoreView, writeState |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from javax.faces.application.ViewHandler Detail: |
|---|
Returns the correct character encoding to be used for this request. The following algorithm is employed. |
Returns an appropriate Locale to use for this and subsequent requests for the current client. |
Return an appropriate The default return value is javax.faces.render.RenderKitFactory#HTML_BASIC_RENDER_KIT . |
Create and return a new UIViewRoot instance
initialized with information from the argument
If there is an existing |
Return a URL suitable for rendering (after optional encoding
performed by the |
Return a URL suitable for rendering (after optional encoding
perfomed by the |
Initialize the view for the request processing lifecycle. This method must be called at the beginning of the Restore View Phase of the Request Processing Lifecycle. It is responsible for performing any per-request initialization necessary to the operation of the lifycecle. The default implementation calls #calculateCharacterEncoding
and passes the result, if non- |
Perform whatever actions are required to render the response view to the response object associated with the current FacesContext . |
Perform whatever actions are required to restore the view
associated with the specified FacesContext and
|
Take any appropriate action to either immediately write out the current state information (by calling StateManager#writeState , or noting where state information should later be written. |