Spring Web Flow

org.springframework.faces.webflow
Class FlowViewHandler

java.lang.Object
  extended by javax.faces.application.ViewHandler
      extended by javax.faces.application.ViewHandlerWrapper
          extended by org.springframework.faces.webflow.FlowViewHandler
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.application.ViewHandler>

public class FlowViewHandler
extends javax.faces.application.ViewHandlerWrapper

Simple 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, Rossen Stoyanchev, Phillip Webb

Field Summary
 
Fields inherited from class javax.faces.application.ViewHandler
CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
 
Constructor Summary
FlowViewHandler(javax.faces.application.ViewHandler wrapped)
           
 
Method Summary
 java.util.Locale calculateLocale(javax.faces.context.FacesContext context)
           
 javax.faces.component.UIViewRoot createView(javax.faces.context.FacesContext context, java.lang.String viewId)
           
 java.lang.String deriveViewId(javax.faces.context.FacesContext context, java.lang.String rawViewId)
           
 java.lang.String getActionURL(javax.faces.context.FacesContext context, java.lang.String viewId)
           
 javax.faces.application.ViewHandler getWrapped()
           
 javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext context, java.lang.String viewId)
           
 
Methods inherited from class javax.faces.application.ViewHandlerWrapper
calculateCharacterEncoding, calculateRenderKitId, deriveLogicalViewId, getBookmarkableURL, getRedirectURL, getResourceURL, getViewDeclarationLanguage, initView, renderView, writeState
 
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 wrapped)
Method Detail

getWrapped

public javax.faces.application.ViewHandler getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.application.ViewHandler>
Overrides:
getWrapped in class javax.faces.application.ViewHandlerWrapper

getActionURL

public java.lang.String getActionURL(javax.faces.context.FacesContext context,
                                     java.lang.String viewId)
Overrides:
getActionURL in class javax.faces.application.ViewHandlerWrapper

calculateLocale

public java.util.Locale calculateLocale(javax.faces.context.FacesContext context)
Overrides:
calculateLocale in class javax.faces.application.ViewHandlerWrapper

createView

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

restoreView

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

deriveViewId

public java.lang.String deriveViewId(javax.faces.context.FacesContext context,
                                     java.lang.String rawViewId)
Overrides:
deriveViewId in class javax.faces.application.ViewHandlerWrapper

Spring Web Flow