JSF-Spring

de.mindmatters.faces.application
Class ExtendedFaceletViewHandler

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by com.sun.facelets.FaceletViewHandler
          extended by de.mindmatters.faces.application.ExtendedFaceletViewHandler

public class ExtendedFaceletViewHandler
extends com.sun.facelets.FaceletViewHandler

Extends FaceletViewHandler to implement ViewBuilder.buildView(FacesContext, String).

Should never used directly within a faces-config file. Will be instantiated by the FaceletViewBuilder class via reflection.

Author:
Andreas Kuhrwahl

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.facelets.FaceletViewHandler
com.sun.facelets.FaceletViewHandler.NullWriter
 
Field Summary
 
Fields inherited from class com.sun.facelets.FaceletViewHandler
DEFAULT_REFRESH_PERIOD, log, PARAM_BUFFER_SIZE, PARAM_BUILD_BEFORE_RESTORE, PARAM_DECORATORS, PARAM_DEVELOPMENT, PARAM_LIBRARIES, PARAM_REFRESH_PERIO, PARAM_RESOURCE_RESOLVER, PARAM_SKIP_COMMENTS, PARAM_VIEW_MAPPINGS
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME
 
Constructor Summary
ExtendedFaceletViewHandler(ViewHandler viewHandler)
          Default constructor.
 
Method Summary
 UIViewRoot buildView(FacesContext context, java.lang.String viewId)
          Builds the view.
protected  java.lang.String getRenderedViewId(FacesContext context, java.lang.String actionId)
          
 
Methods inherited from class com.sun.facelets.FaceletViewHandler
buildView, calculateLocale, calculateRenderKitId, createCompiler, createFaceletFactory, createResponseWriter, createView, getActionURL, getDefaultSuffix, getResourceURL, getResponseContentType, getResponseEncoding, getWrapped, handleFaceletNotFound, handleRenderException, initialize, initializeCompiler, renderView, restoreView, writeState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedFaceletViewHandler

public ExtendedFaceletViewHandler(ViewHandler viewHandler)
Default constructor. Must be invoked by subclasses.

Parameters:
viewHandler - the original ViewHandler of the underlying JSF implementation.
Method Detail

getRenderedViewId

protected final java.lang.String getRenderedViewId(FacesContext context,
                                                   java.lang.String actionId)

Overrides:
getRenderedViewId in class com.sun.facelets.FaceletViewHandler

buildView

public final UIViewRoot buildView(FacesContext context,
                                  java.lang.String viewId)
                           throws java.io.IOException
Builds the view.

Parameters:
context - FacesContext for the current request
viewId - the view identifier for the current request
Returns:
the created UIViewRoot
Throws:
FacesException - if a servlet error occurs
java.io.IOException - if an input/output error occurs

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG