1 Reply Latest reply on Nov 24, 2008 7:06 AM by Ilya Shaikovsky

    JSF/Richfaces lifecycle query

    Joe O'Toole Newbie

      Hi

      My JSF application contains about 6 different jsp pages. Each of these jsp pages contains several richfaces components. Hence for example, in my home.jsp page, clicking on the LHS menu(commandButtons etc) will result in different content appearing in an <a4j:outputPanel> component in the center of the page(home.jsp), i.e. I have the ajaxRendered property set to true for the <a4j:outputPanel> and the commandButtons have their reRender property set to the <a4j:outputPanel>.Hence the user can perform several actions, i.e. loading different content etc (in the a4j:outputPanel) whilst staying on the same view (home.jsp Page) -

      I have a requirement to implement a back link(in all my JSP pages). Assume the user navigates to the home.jsp page from the contactus.jsp page and clicks on different menu items within home.jsp which results in different content been loaded in to the <a4j:outputPanel> component in the center of the page. Now, if the user clicks on this back link, I want the back link to return to the previous state of the home.jsp(view) and not the contactus.jsp page.

      Is this supported within JSF. Otherwise, if the user clicks on the back link I am going to have the call the various backend methods again to retrieve the data to rebuild the previous state of the current view

      Thanks