javax.faces.application
Class ViewHandlerWrapper

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by javax.faces.application.ViewHandlerWrapper

public abstract class ViewHandlerWrapper
extends ViewHandler

see Javadoc of JSF Specification

Author:
Stan Silvert

Field Summary
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME
 
Constructor Summary
ViewHandlerWrapper()
           
 
Method Summary
 java.lang.String calculateCharacterEncoding(FacesContext context)
           
 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)
           
 java.lang.String getResourceURL(FacesContext context, java.lang.String path)
           
protected abstract  ViewHandler getWrapped()
           
 void initView(FacesContext context)
          Method must be called by the JSF impl at the beginning of Phase Restore View of the JSF lifecycle.
 void renderView(FacesContext context, UIViewRoot viewToRender)
           
 UIViewRoot restoreView(FacesContext context, java.lang.String viewId)
           
 void writeState(FacesContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewHandlerWrapper

public ViewHandlerWrapper()
Method Detail

calculateCharacterEncoding

public java.lang.String calculateCharacterEncoding(FacesContext context)
Overrides:
calculateCharacterEncoding in class ViewHandler

initView

public void initView(FacesContext context)
              throws FacesException
Description copied from class: ViewHandler
Method must be called by the JSF impl at the beginning of Phase Restore View of the JSF lifecycle.

Overrides:
initView in class ViewHandler
Throws:
FacesException

getWrapped

protected abstract ViewHandler getWrapped()

renderView

public void renderView(FacesContext context,
                       UIViewRoot viewToRender)
                throws java.io.IOException,
                       FacesException
Specified by:
renderView in class ViewHandler
Throws:
java.io.IOException
FacesException

writeState

public void writeState(FacesContext context)
                throws java.io.IOException
Specified by:
writeState in class ViewHandler
Throws:
java.io.IOException

calculateRenderKitId

public java.lang.String calculateRenderKitId(FacesContext context)
Specified by:
calculateRenderKitId in class ViewHandler

calculateLocale

public java.util.Locale calculateLocale(FacesContext context)
Specified by:
calculateLocale in class ViewHandler

restoreView

public UIViewRoot restoreView(FacesContext context,
                              java.lang.String viewId)
Specified by:
restoreView in class ViewHandler

getResourceURL

public java.lang.String getResourceURL(FacesContext context,
                                       java.lang.String path)
Specified by:
getResourceURL in class ViewHandler

getActionURL

public java.lang.String getActionURL(FacesContext context,
                                     java.lang.String viewId)
Specified by:
getActionURL in class ViewHandler

createView

public UIViewRoot createView(FacesContext context,
                             java.lang.String viewId)
Specified by:
createView in class ViewHandler


Copyright © 2007 Apache Software Foundation. All Rights Reserved.