1 Reply Latest reply on Mar 20, 2009 10:35 AM by ilya_shaikovsky

    how to use <redirect/> in navigation rules

      in richfaces-userguid,

      Make sure, you define <redirect/> option for the navigation rule to avoid memory leaks.
      , the redirect will be used in every navigation-rule, or only once enough?

      the following example is correct?
      <navigation-rule>
      <from-view-id>*</from-view-id>
      <navigation-case>
      <from-outcome>next</from-outcome>
      <to-view-id>/pages/step1.xhtml</to-view-id>
      <redirect/>
      </navigation-case>
      
      <navigation-case>
      ...<from-view-id>/pages/step1.xhtml</from-view-id>
      <navigation-case>
      <from-outcome>next</from-outcome>
      <to-view-id>/pages/step2.xhtml</to-view-id>
      <redirect/>
      </navigation-case>
      .
      .
      .
      </navigation-rule>