0 Replies Latest reply on Nov 15, 2010 6:46 AM by kalpana prakasam

    How to navigate between pages effectively

    kalpana prakasam Novice
      I have two pages (AllUsersList.xhtml, ActiveUserList.xhtml) which shares the same code. The body of the page contains links that navigate to different page that in turn contains links to all Users. If I start from AllUsersList.xhtml, after viewing all the inner pages it should return back to AllUsersList.xhtml. The same action should be done for ActiveUserList.xhtml. When I come back from inner pages every page expects a param to land on the appropriate page.

      We use the "from" page parameter to identify, whether we need to go back to AllUsersList.xhtml or ActiveUserList.xhtml. Both the pages contain a List<User>'s rendered in a rich:dataTable, but whenever I navigate to the ViewUser.xhtml page and come back, I loose the reference to the "from" parameter and hence it goes to the wrong target page.

      Should I pass "from" parameter to ViewUser.xhtml also to resolve this issue OR is there a better way to handle page parameters when the end user navigates to more inner pages.