Class JsfView

java.lang.Object
org.springframework.faces.webflow.JsfView
All Implemented Interfaces:
org.springframework.webflow.execution.View

public class JsfView extends Object implements org.springframework.webflow.execution.View
JSF-specific View implementation.
Author:
Jeremy Grelle, Phillip Webb
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from interface org.springframework.webflow.execution.View

    RENDER_FRAGMENTS_ATTRIBUTE, USER_EVENT_STATE_ATTRIBUTE
  • Constructor Summary

    Constructors
    Constructor
    Description
    JsfView(jakarta.faces.component.UIViewRoot viewRoot, jakarta.faces.lifecycle.Lifecycle facesLifecycle, org.springframework.webflow.execution.RequestContext context)
    Creates a new JSF view.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.webflow.execution.Event
     
     
    jakarta.faces.component.UIViewRoot
    Returns the underlying view root.
    boolean
     
    void
    Executes postback-processing portions of the standard JSF lifecycle including APPLY_REQUEST_VALUES through INVOKE_APPLICATION.
    void
    Performs the standard duties of the JSF RENDER_RESPONSE phase.
    void
    Updates the component state stored in View scope so that it remains in sync with the updated flow execution snapshot
    void
    setViewRoot(jakarta.faces.component.UIViewRoot viewRoot)
     
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • JsfView

      public JsfView(jakarta.faces.component.UIViewRoot viewRoot, jakarta.faces.lifecycle.Lifecycle facesLifecycle, org.springframework.webflow.execution.RequestContext context)
      Creates a new JSF view.
      Parameters:
      viewRoot - the view root
      facesLifecycle - the flow faces lifecycle
      context - the current flow request
  • Method Details

    • getViewRoot

      public jakarta.faces.component.UIViewRoot getViewRoot()
      Returns the underlying view root.
      Returns:
      the view root
    • setViewRoot

      public void setViewRoot(jakarta.faces.component.UIViewRoot viewRoot)
    • render

      public void render() throws IOException
      Performs the standard duties of the JSF RENDER_RESPONSE phase.
      Specified by:
      render in interface org.springframework.webflow.execution.View
      Throws:
      IOException
    • userEventQueued

      public boolean userEventQueued()
      Specified by:
      userEventQueued in interface org.springframework.webflow.execution.View
    • processUserEvent

      public void processUserEvent()
      Executes postback-processing portions of the standard JSF lifecycle including APPLY_REQUEST_VALUES through INVOKE_APPLICATION.
      Specified by:
      processUserEvent in interface org.springframework.webflow.execution.View
    • saveState

      public void saveState()
      Updates the component state stored in View scope so that it remains in sync with the updated flow execution snapshot
      Specified by:
      saveState in interface org.springframework.webflow.execution.View
    • getUserEventState

      public Serializable getUserEventState()
      Specified by:
      getUserEventState in interface org.springframework.webflow.execution.View
    • hasFlowEvent

      public boolean hasFlowEvent()
      Specified by:
      hasFlowEvent in interface org.springframework.webflow.execution.View
    • getFlowEvent

      public org.springframework.webflow.execution.Event getFlowEvent()
      Specified by:
      getFlowEvent in interface org.springframework.webflow.execution.View
    • toString

      public String toString()
      Overrides:
      toString in class Object