previous | start | next

## Navigation Between Pages

- `faces-config.xml` contains a navigation rule that maps outcome strings to pages:

      <faces-config>
         <navigation-rule>
            <navigation-case>
               <from-outcome>available</from-outcome>
               <to-view-id>/next.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
               <from-outcome>unavailable</from-outcome>
               <to-view-id>/error.jsp</to-view-id>
            </navigation-case>
            <navigation-case>
               <from-outcome>back</from-outcome>
               <to-view-id>/index.jsp</to-view-id>
            </navigation-case>
         </navigation-rule>
         . . .
      </faces-config>

- Current page is redisplayed when
  - The button has no action attribute, or
  - The action outcome is not listed in the navigation rules

previous | start | next