org.apache.shale.view.faces
Class ViewViewHandler

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by org.apache.shale.view.faces.ViewViewHandler

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.

$Id: ViewViewHandler.java 489926 2006-12-23 20:56:29Z craigmcc $


Field Summary
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME
 
Constructor Summary
ViewViewHandler(javax.faces.application.ViewHandler original)
          Create a ViewViewHandler instance that decorates the specified ViewHandler provided by the JSF runtime implementation.
 
Method Summary
 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)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewViewHandler

public ViewViewHandler(javax.faces.application.ViewHandler original)

Create a ViewViewHandler instance that decorates the specified ViewHandler provided by the JSF runtime implementation.

Parameters:
original - Original ViewHandler to be decorated
Method Detail

calculateLocale

public Locale calculateLocale(javax.faces.context.FacesContext context)

Specified by:
calculateLocale in class javax.faces.application.ViewHandler

calculateRenderKitId

public String calculateRenderKitId(javax.faces.context.FacesContext context)

Specified by:
calculateRenderKitId in class javax.faces.application.ViewHandler

createView

public 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.

Specified by:
createView in class javax.faces.application.ViewHandler
Parameters:
context - FacesContext for the current request
viewId - View identifier of the view to be created

getActionURL

public String getActionURL(javax.faces.context.FacesContext context,
                           String viewId)

Specified by:
getActionURL in class javax.faces.application.ViewHandler

getResourceURL

public String getResourceURL(javax.faces.context.FacesContext context,
                             String path)

Specified by:
getResourceURL in class javax.faces.application.ViewHandler

renderView

public void renderView(javax.faces.context.FacesContext context,
                       javax.faces.component.UIViewRoot view)
                throws IOException,
                       javax.faces.FacesException

Specified by:
renderView in class javax.faces.application.ViewHandler
Throws:
IOException
javax.faces.FacesException

restoreView

public 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.

Specified by:
restoreView in class javax.faces.application.ViewHandler
Parameters:
context - FacesContext for the current request
viewId - View identifier of the view to be restored

writeState

public void writeState(javax.faces.context.FacesContext context)
                throws IOException

Specified by:
writeState in class javax.faces.application.ViewHandler
Throws:
IOException


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.