JSF-Spring

de.mindmatters.faces.application
Class AbstractDelegatingViewBuilder

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by de.mindmatters.faces.application.ViewBuilder
          extended by de.mindmatters.faces.application.AbstractDelegatingViewBuilder

public abstract class AbstractDelegatingViewBuilder
extends ViewBuilder

Abstract implementation of a ViewBuilder that delegates the behaviour inherited from the ViewHandler to the original view handler of the underlying JSF implementation.

Author:
Andreas Kuhrwahl

Field Summary
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME
 
Constructor Summary
AbstractDelegatingViewBuilder(ViewHandler delegate)
          Constructor that takes the original ViewHandler.
 
Method Summary
 java.util.Locale calculateLocale(FacesContext context)
          
 java.lang.String calculateRenderKitId(FacesContext context)
          
 UIViewRoot createView(FacesContext context, java.lang.String viewId)
          
 java.lang.String getActionURL(FacesContext context, java.lang.String viewId)
          
protected  ViewHandler getDelegate()
           
 java.lang.String getResourceURL(FacesContext context, java.lang.String path)
          
 void renderView(FacesContext context, UIViewRoot viewToRender)
          
 UIViewRoot restoreView(FacesContext context, java.lang.String viewId)
          
protected  void writeStateInClient(FacesContext context)
          Writes the state of a view into the response.
 
Methods inherited from class de.mindmatters.faces.application.ViewBuilder
buildView, markForTransientState, unmarkTransientState, writeState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractDelegatingViewBuilder

public AbstractDelegatingViewBuilder(ViewHandler delegate)
Constructor that takes the original ViewHandler.

Parameters:
delegate - the original ViewHandler
Method Detail

calculateLocale

public final java.util.Locale calculateLocale(FacesContext context)

Specified by:
calculateLocale in class ViewHandler

calculateRenderKitId

public final java.lang.String calculateRenderKitId(FacesContext context)

Specified by:
calculateRenderKitId in class ViewHandler

createView

public final UIViewRoot createView(FacesContext context,
                                   java.lang.String viewId)

Specified by:
createView in class ViewHandler

getActionURL

public final java.lang.String getActionURL(FacesContext context,
                                           java.lang.String viewId)

Specified by:
getActionURL in class ViewHandler

getResourceURL

public final java.lang.String getResourceURL(FacesContext context,
                                             java.lang.String path)

Specified by:
getResourceURL in class ViewHandler

renderView

public final void renderView(FacesContext context,
                             UIViewRoot viewToRender)
                      throws java.io.IOException

Specified by:
renderView in class ViewHandler
Throws:
java.io.IOException

restoreView

public final UIViewRoot restoreView(FacesContext context,
                                    java.lang.String viewId)

Specified by:
restoreView in class ViewHandler

getDelegate

protected final ViewHandler getDelegate()
Returns:
the original ViewHandler

writeStateInClient

protected final void writeStateInClient(FacesContext context)
                                 throws java.io.IOException
Writes the state of a view into the response. Usually this is done by calling StateManager.writeState(javax.faces.context.FacesContext, javax.faces.application.StateManager.SerializedView)

Specified by:
writeStateInClient in class ViewBuilder
Parameters:
context - FacesContext for the current request
Throws:
java.io.IOException - if an input/output error occurs
See Also:
ViewHandler.writeState(FacesContext)

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG