suppose, that wizard-demo in richfaces-demo implemented by modalPanel, hat a cancel button in step 2, 3 and a finish button in step3, if click the cancel or finish, the modalpanel will hidden, the navigation can defined as the following
<navigation-rule> <from-view-id>/richfaces/include/examples/wstep1.xhtml</from-view-id> <navigation-case> <from-outcome>next</from-outcome> <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id> </navigation-case> <navigation-case> <from-outcome>reset</from-outcome> <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id> </navigation-case> </navigation-rule> <navigation-rule> <from-view-id>/richfaces/include/examples/wstep2.xhtml</from-view-id> <navigation-case> <from-outcome>previous</from-outcome> <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id> </navigation-case> <navigation-case> <from-outcome>reset</from-outcome> <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id> </navigation-case> <navigation-case> <from-outcome>next</from-outcome> <to-view-id>/richfaces/include/examples/finalStep.xhtml</to-view-id> </navigation-case> </navigation-rule> <navigation-rule> <from-view-id>/richfaces/include/examples/finalStep.xhtml</from-view-id> <navigation-case> <from-outcome>previous</from-outcome> <to-view-id>/richfaces/include/examples/wstep2.xhtml</to-view-id> </navigation-case> <navigation-case> <from-outcome>reset</from-outcome> <to-view-id>/richfaces/include/examples/wstep1.xhtml</to-view-id> </navigation-case> </navigation-rule>