<?xml version="1.0"?>
<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
              version="1.2">
    <navigation-rule>
        <from-view-id>/p1.jsp</from-view-id>
        <navigation-case>
            <from-outcome>next</from-outcome>
            <to-view-id>/p2.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/p2.jsp</from-view-id>
        <navigation-case>
            <from-outcome>prev</from-outcome>
            <to-view-id>/p1.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>next</from-outcome>
            <to-view-id>/p3.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/p3.jsp</from-view-id>
        <navigation-case>
            <from-outcome>prev</from-outcome>
            <to-view-id>/p2.jsp</to-view-id>
        </navigation-case>
        <navigation-case>
            <from-outcome>done</from-outcome>
            <to-view-id>/result.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <navigation-rule>
        <from-view-id>/result.jsp</from-view-id>
        <navigation-case>
            <from-outcome>prev</from-outcome>
            <to-view-id>/p3.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>
    <managed-bean>
        <managed-bean-name>q</managed-bean-name>
        <managed-bean-class>test.Q</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
</faces-config>
