Class FlowViewHandler

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

public class FlowViewHandler extends jakarta.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 jakarta.faces.application.ViewHandler

    CHARACTER_ENCODING_KEY, DEFAULT_FACELETS_SUFFIX, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME, FACELETS_BUFFER_SIZE_PARAM_NAME, FACELETS_DECORATORS_PARAM_NAME, FACELETS_LIBRARIES_PARAM_NAME, FACELETS_REFRESH_PERIOD_PARAM_NAME, FACELETS_SKIP_COMMENTS_PARAM_NAME, FACELETS_SUFFIX_PARAM_NAME, FACELETS_VIEW_MAPPINGS_PARAM_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    FlowViewHandler(jakarta.faces.application.ViewHandler wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    calculateLocale(jakarta.faces.context.FacesContext context)
     
    jakarta.faces.component.UIViewRoot
    createView(jakarta.faces.context.FacesContext context, String viewId)
     
    deriveViewId(jakarta.faces.context.FacesContext context, String rawViewId)
     
    getActionURL(jakarta.faces.context.FacesContext context, String viewId)
     
    jakarta.faces.application.ViewHandler
     
    jakarta.faces.component.UIViewRoot
    restoreView(jakarta.faces.context.FacesContext context, String viewId)
     

    Methods inherited from class jakarta.faces.application.ViewHandlerWrapper

    addProtectedView, calculateCharacterEncoding, calculateRenderKitId, deriveLogicalViewId, getBookmarkableURL, getProtectedViewsUnmodifiable, getRedirectURL, getResourceURL, getViewDeclarationLanguage, getViews, getViews, getWebsocketURL, initView, removeProtectedView, renderView, writeState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FlowViewHandler

      public FlowViewHandler(jakarta.faces.application.ViewHandler wrapped)
  • Method Details

    • getWrapped

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

      public String getActionURL(jakarta.faces.context.FacesContext context, String viewId)
      Overrides:
      getActionURL in class jakarta.faces.application.ViewHandlerWrapper
    • calculateLocale

      public Locale calculateLocale(jakarta.faces.context.FacesContext context)
      Overrides:
      calculateLocale in class jakarta.faces.application.ViewHandlerWrapper
    • createView

      public jakarta.faces.component.UIViewRoot createView(jakarta.faces.context.FacesContext context, String viewId)
      Overrides:
      createView in class jakarta.faces.application.ViewHandlerWrapper
    • restoreView

      public jakarta.faces.component.UIViewRoot restoreView(jakarta.faces.context.FacesContext context, String viewId)
      Overrides:
      restoreView in class jakarta.faces.application.ViewHandlerWrapper
    • deriveViewId

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