org.springframework.faces.webflow
Class FlowViewHandler

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by org.springframework.faces.webflow.FlowViewHandler

public class FlowViewHandler
extends javax.faces.application.ViewHandler

Simple delegating ViewHandler implementation that provides JSF Form's with the correct FlowExecution URL, including the current FlowExecutionKey, so that postbacks may be properly intercepted and handled by Web Flow.

Author:
Jeremy Grelle

Field Summary
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME
 
Constructor Summary
FlowViewHandler(javax.faces.application.ViewHandler delegate)
           
 
Method Summary
 java.util.Locale calculateLocale(javax.faces.context.FacesContext context)
           
 java.lang.String calculateRenderKitId(javax.faces.context.FacesContext context)
           
 javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context, java.lang.String viewId)
           
 java.lang.String getActionURL(javax.faces.context.FacesContext context, java.lang.String viewId)
           
 java.lang.String getResourceURL(javax.faces.context.FacesContext context, java.lang.String path)
           
 void renderView(javax.faces.context.FacesContext context, javax.faces.component.UIViewRoot viewToRender)
           
 javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, java.lang.String viewId)
           
 void writeState(javax.faces.context.FacesContext context)
           
 
Methods inherited from class javax.faces.application.ViewHandler
calculateCharacterEncoding, initView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlowViewHandler

public FlowViewHandler(javax.faces.application.ViewHandler delegate)
Method Detail

getActionURL

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

calculateLocale

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

createView

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

restoreView

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

calculateRenderKitId

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

getResourceURL

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

renderView

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

writeState

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