2 Replies Latest reply on Aug 3, 2007 5:43 AM by Pete Muir

    pages.xml navigation rules?

    Tony Mai Apprentice

      Hi,

      I have the following method declared in one of the backing bean:

      @Name("wcQuotesMgr")
      public class QuotesManagerBean implements QuotesManager {
       public String viewNews(Quote quote) {
       return "success";
       }
      ...
      }
      ...


      How would I tell the pages.xml to navigate to the choosen page? For example, I am currently declaring the following in my pages.xml:

      <navigation from-action="#{wcQuotesMgr.viewNews}">
       <rule if-outcome="success">
       <redirect view-id="/viewNews.xhtml"/>
       </rule>
      </navigation>


      Yet that does not seem to work. In all my other pages.xml declaration, I did not have methods that contains parameters. In this particular case, I have one parameter. Perhaps that is reason why I was not redirecting the page I would like.

      Any idea?

      Thanks