Seam style page navigation eliminates the need for hard-coding page flows into the application's business logic. Typically in JSF applications, page flows are defined in the faces-config.xml
file. This JSF page flow is defined by a set of navigation rules, which can either be specified on a per-page basis (if the<from-view-id />
element is defined), or on a global basis.
<! This navigation rule defines page flow from /myPage.jsp --> <navigation-rule> <from-view-id>/myPage.jsp</from-view-id> <navigation-case> <from-outcome>success</from-outcome> <to-view-id>/success.jsp</to-view-id> </navigation-case> <navigation-case> <from-outcome>fail</from-outcome> <to-view-id>/failure.jsp</to-view-id> </navigation-case> </navigation-rule> <! This navigaion rule defines global page flow --> <navigation-rule> <navigation-case> <from-outcome>logout<...