0 Replies Latest reply on Feb 6, 2013 4:31 AM by crewman

    Saving position in rich:dataTable

    crewman Newbie

      I have a rich:dataTable containing a4j:commandLink in one of it's columns. This a4j:commandLink invokes a bean's method which creates a nested conversation. The method saves the current view name and makes redirect to another view:


      {code}@Begin(nested = true)

      public String selectPack(Long packId){

          this.returnView = FacesContext.getCurrentInstance().getViewRoot().getViewId();

          return "/pageServiceDocPackage.xhtml";


      Once a user clicks the "Close" button on the second view, the nested conversation is closed and the user is redirected to the first view the dataTable is placed on:



      public String end(){

          return this.returnView;


      I'm looking for a way to focus on the row of the rich:dataTable the clicked a4j:commandLink is placed in. Is there a way to implement the behaviour in this scenario as if the row is bookmarked with an html anchor and URL in address bar has this anchor on return to the first view?


      I'm using RichFaces 3.3.3 and Seam Framework 2.2.2.