Exanded faces-config.xml File
[Previous]
[Main]
[Next]
Final faces-config.xml File
This has the navigation for the Demo Application
<?xml version="1.0"?>
<!DOCTYPE faces-config PUBLIC
"-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.0//EN"
"http://java.sun.com/dtd/web-facesconfig_1_0.dtd">
<faces-config>
<navigation-rule>
<from-view-id>/index.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/welcome.faces</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/welcome.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/application.faces</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/welcome.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/index.faces</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/welcome.jsp</from-view-id>
<navigation-case>
<from-outcome>help</from-outcome>
<to-view-id>/help.faces</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/help.jsp</from-view-id>
<navigation-case>
<from-outcome>back</from-outcome>
<to-view-id>/welcome.faces</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/application.jsp</from-view-id>
<navigation-case>
<from-outcome>login</from-outcome>
<to-view-id>/index.faces</to-view-id>
</navigation-case>
</navigation-rule>
<managed-bean>
<managed-bean-name>user</managed-bean-name>
<managed-bean-class>com.corejsf.UserBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>name</property-name>
<value>Bub</value>
</managed-property>
</managed-bean>
</faces-config>