Programmatic Faces Flows
In this appendix, we will provide a quick reference to the JavaServer Faces Flow. A flow is as per user and per web application finite state machine is with nodes. There is a default entry node and at least one exit node.
View types
In Chapter 6, JSF Flows and Finesse, we discussed the building of the flow navigation from the Faces configuration XML file. The JSF 2.2 specification describes the convention to store and set up the flows with a directory structure.
There are several types of nodes. They are tabulated in the following table:
Node type |
Description |
---|---|
View Node |
This node represents a view. The JSF provider renders the view, the flow is still active. |
Return Node |
This node represents an exit point from the flow to the outside of this flow. The current flow terminates on the invocation of this node. |
Flow Call Node |
This node represents an invocation to another nested flow. |
Method Call Node |
This node represents an invocation to a method call in a flow-scoped... |