Java Reference
In-Depth Information
According to the rule we have just presented, the web application that the tree is
showing contains a flow named inscriptionFlow with six views. This flow is
configured in inscriptionFlow-flow.xml and its starting node is inscrip-
tionFlow.xhtml .
webapp
WEB-INF
inscriptionFlow
inscriptionFlow-flow.xml
inscriptionFlow.xhtml
inscriptionFlow1.xhtml
inscriptionFlow2.xhtml
inscriptionFlow3.xhtml
inscriptionFlow4.xhtml
inscriptionFlow5.xhtml
...
index.xhtml
In the configuration file, we must define the ID of the flow and the ID of exit points.
The following code shows the contents of the file inscriptionFlow-flow.xml :
<?xml version='1.0' encoding='UTF-8'?>
<faces-config version="2.2"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/
xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/
web-facesconfig_2_2.xsd">
<flow-definition id="inscriptionFlow">
<flow-return id="inscriptionFlowExit">
<from-outcome>#{inscriptionFlowBean.exitValue}</from-outcome>
</flow-return>
Search WWH ::




Custom Search