0 Replies Latest reply on Mar 18, 2008 11:22 AM by M S

    dataTable & datascroller

    M S Newbie

      Hi!
      I have two Jsps. At one of them is a list (datatable & datascroller). When I click on an entry of the list, i jump to a 2nd page and show the details of the entry.
      My problem is:
      - I click on a row and change to the detailview
      - I jump back to the list
      - Now I always get on the first page of the list and, not on the page where I left the datatable.

      Here is my list made of datatable & datascroller. I binded the datascroller on my backing bean, but I seems, the datascroller is always a new one, when I jump to the list page.

      <rich:dataTable id="issuelist" value="#{issueList.issues}" var="issue" rows="3">
       <f:facet name="header">
       <h:outputText value="Tickets" />
       </f:facet>
      
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Nr" />
       </f:facet>
       <h:outputText value="#{issue.issueNumber}" />
       </rich:column>
      
      
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Open" />
       </f:facet>
       <h:commandLink action="#{issueList.openIssue}">
       <h:outputText value="Open" />
       </h:commandLink>
       </rich:column>
       <f:facet name="footer">
       <rich:datascroller for="issuelist" id ="scroller1"
       binding="#{issueList.dataScroller}"
       scrollerListener="#{issueList.ScrollerListener}"
       pageIndexVar="pageIndex" pagesVar="pages">
       <f:facet name="pages">
       <h:outputText value="#{pageIndex} / #{pages}"></h:outputText>
       </f:facet>
       </rich:datascroller>
       </f:facet>
      
       </rich:dataTable>