public class ViewViewHandler
extends javax.faces.application.ViewHandler
ViewViewHandler is a custom implementation of ViewHandler
that adds support for on-demand creation and configuration of ViewController
instances, and other view related functionality.
| Constructor and Description |
|---|
ViewViewHandler(javax.faces.application.ViewHandler original)
Create a
ViewViewHandler instance that decorates the
specified ViewHandler provided by the JSF runtime
implementation. |
| Modifier and Type | Method and Description |
|---|---|
Locale |
calculateLocale(javax.faces.context.FacesContext context) |
String |
calculateRenderKitId(javax.faces.context.FacesContext context) |
javax.faces.component.UIViewRoot |
createView(javax.faces.context.FacesContext context,
String viewId)
After delegating to our original
ViewHandler,
create and initialize any ViewController associated with
the specified view identifier. |
String |
getActionURL(javax.faces.context.FacesContext context,
String viewId) |
String |
getResourceURL(javax.faces.context.FacesContext context,
String path) |
void |
renderView(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot view) |
javax.faces.component.UIViewRoot |
restoreView(javax.faces.context.FacesContext context,
String viewId)
After delegating to our original
ViewHandler,
create and initialize any ViewController associated with
the specified view identifier. |
void |
writeState(javax.faces.context.FacesContext context) |
public ViewViewHandler(javax.faces.application.ViewHandler original)
Create a ViewViewHandler instance that decorates the
specified ViewHandler provided by the JSF runtime
implementation.
original - Original ViewHandler to be decoratedpublic Locale calculateLocale(javax.faces.context.FacesContext context)
calculateLocale in class javax.faces.application.ViewHandlerpublic String calculateRenderKitId(javax.faces.context.FacesContext context)
calculateRenderKitId in class javax.faces.application.ViewHandlerpublic javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context,
String viewId)
After delegating to our original ViewHandler,
create and initialize any ViewController associated with
the specified view identifier.
createView in class javax.faces.application.ViewHandlercontext - FacesContext for the current requestviewId - View identifier of the view to be createdpublic String getActionURL(javax.faces.context.FacesContext context, String viewId)
getActionURL in class javax.faces.application.ViewHandlerpublic String getResourceURL(javax.faces.context.FacesContext context, String path)
getResourceURL in class javax.faces.application.ViewHandlerpublic void renderView(javax.faces.context.FacesContext context,
javax.faces.component.UIViewRoot view)
throws IOException,
javax.faces.FacesException
renderView in class javax.faces.application.ViewHandlerIOExceptionjavax.faces.FacesExceptionpublic javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context,
String viewId)
After delegating to our original ViewHandler,
create and initialize any ViewController associated with
the specified view identifier.
restoreView in class javax.faces.application.ViewHandlercontext - FacesContext for the current requestviewId - View identifier of the view to be restoredpublic void writeState(javax.faces.context.FacesContext context)
throws IOException
writeState in class javax.faces.application.ViewHandlerIOExceptionCopyright © 2004-2013 Apache Software Foundation. All Rights Reserved.