2 Replies Latest reply on Feb 14, 2007 8:46 AM by gavin.king

    pages.xml

    sherkan777

      hello guys...

      i have s:link like this

      <s:link value="#{menuAction.bestTags[0].tagName}" action='#{questionsAction.searchBestTag("0")}'/>
      


      and need to add redirect in pages.xml to 2 kind of pages, if outcome is succes go "/exampleA.xhtml" or failed "/exampleB.xhtml", but don't know how to implement those navigation rule.
      Can anyone help me or show source code example?
      Regards!

        • 1. Re: pages.xml
          waheed.murad

          i think, you can do it like this,

          <page view-id="/page.xhtml">
           <navigation from-action="#{action.action}">
           <rule if-outcome="success">
           <redirect view-id="/viewA.xhtml">
           </rule>
           <rule if-outcome="failed">
           <redirect view-id="/viewB.xhtml">
           </rule>
           </navigation-case>
           </navigation-rule>
          




          • 2. Re: pages.xml
            gavin.king

            Right.