org.apache.shale.validator.faces
Class ValidatorViewHandler

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by org.apache.shale.validator.faces.ValidatorViewHandler

public class ValidatorViewHandler
extends javax.faces.application.ViewHandler

ValidatorViewHandler is a custom implementation of ViewHandler that adds support for setting up a decorated RenderKit.


Field Summary
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME
 
Constructor Summary
ValidatorViewHandler(javax.faces.application.ViewHandler original)
          Create a ValidatorViewHandler 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, ensure that our decorator RenderKit has been initialized.
 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)
          
 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

ValidatorViewHandler

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

Create a ValidatorViewHandler 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, ensure that our decorator RenderKit has been initialized.

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)

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

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.