public
classFlowPhaseListener
implements
PhaseListener
Overview
Inheritance
Members
Usage
Source
Books
SinceNot specified.
VersionNot specified.
Author(s)Colin Sampaleanu, Keith Donald
JSF phase listener that is responsible for managing a FlowExecution
object representing an active user conversation so that other JSF artifacts
that execute in different phases of the JSF lifecycle may have access to it.
This phase listener implements the following algorithm:
On BEFORE_RESTORE_VIEW, restore the FlowExecution the user is
participating in if a call to
extractFlowExecutionKey(ExternalContext)
returns a submitted flow execution identifier. Place the restored flow
execution in a holder that other JSF artifacts such as VariableResolvers,
PropertyResolvers, and NavigationHandlers may access during the request
lifecycle.
On BEFORE_RENDER_RESPONSE, if a flow execution was restored in the
RESTORE_VIEW phase generate a new key for identifying the updated execution
within a the selected FlowExecutionRepository . Expose managed flow
execution attributes to the views before rendering.
On AFTER_RENDER_RESPONSE, if a flow execution was restored in the
RESTORE_VIEW phase save the updated execution to the repository
using the new key generated in the BEFORE_RENDER_RESPONSE phase.
This phase listener implements the following algorithm: