0 Replies Latest reply on Jul 1, 2009 9:40 PM by Tanya Ruttenberg

    Page navigation rule based on parameter set

    Tanya Ruttenberg Expert

      I am trying to control page navigation based on whether or not a parameter is null.  I've been working on this for a couple of days now and I cannot get it working.

      Here is the latest and greatest:

      <rule if="#{devicesList.devices.devName != null}">
        <redirect view-id="/ONDDevResultPage.xhtml" />
      <rule  if="#{officeList.office.state != null}">
        <redirect view-id="/ONDResultPage.xhtml" />

      When I input the state parameter into officeList.office.state:

      <param name="state" value="#{officeList.office.state}" />

      The app navigates to /ONDDevResultPage.xhtml which causes some pretty funky behavior, which I won't get into now.

      I actually thought I had this working, but then it suddenly stopped. Now I wonder if I was simply dreaming.

      What is the correct test for the rule?  On a related note, what is the difference between if and if-outcome in a navigation rule?  Should I maybe use evaluate with if-outcome instead?  I think I tried that, too, and no dice.