1 Reply Latest reply on Apr 10, 2009 10:06 PM by gonorrhea

    Navigation based on results

    ryanwaggoner

      Hi guys,
        I am having a hard time figuring out how Seam wants me to do this...


      I have a page that lists users. When you click a user it takes you to an edit page. This edit page is the same page used to enter a new user. When the save button is hit, I would like to try to do something like...


      If(from list page)
         return listpage
      else
         return confirmSave




      Thanks!

        • 1. Re: Navigation based on results
          gonorrhea

          you can provide page navigation information in the public method of the backing bean:


          public String submit() {
               return "/RepairCaseDetails.xhtml";
          }



          so just use an if/ese block in that method to navigate conditionally...


          as an alternative, you should be able to do something similar in pages.xml...