Java Reference
In-Depth Information
Navigation to other nodes within a flow can occur normally, by simply placing the name of the node that
you want to navigate to next within the action attribute of a command component. Optionally, navigation can be
definition within the flow configuration, via either code or XML. We will discuss navigation more in the following
sections. The next lines of code show you what intermediateFlow.xhtml looks like.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
" " >
<html xmlns=" "
xmlns:f=" "
xmlns:h=" "
xmlns:ui=" " >
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Faces Flow Example #1 - Second Page in Flow</title>
<ui:composition template="../layout/custom_template.xhtml">
<ui:define name="content">
<h:form prependId="false">
This is the intermediate view of the flow.
<h:commandLink value="Go to another final view in flow" action="endingFlow"/>
<h:commandLink value="Go to first view in the flow" action="exampleFlow"/>
<h:commandLink value="Exit Flow" action="/index"/>
To determine when a flow will exit, either navigate to a view that resides outside of the flow using standard JSF
navigation or specify an element entitled <faces-flow-return> in the flow definition. This <faces-flow-return>
element can contain a <navigation-case> that will lead to the exit of the flow. For example, the following demonstrates
a single exit navigational case for a flow:
<faces-flow-return id="intermediateFlow">
Search WWH ::

Custom Search