0 Replies Latest reply on Nov 23, 2009 6:01 PM by oliphaunt182

    rich:dataScroller questions

      I'm trying to display text next to the dataScroller that displays something like "Display 1 to 15 of 123 Results" I've come up with the following:

      ...
      <f:facet name="footer">
       <h:panelGrid id="test1" columns="2">
       <rich:datascroller id="dataScroller" for="dataTable" maxPages="#{app.pagination_maxPages}" />
       <a4j:form >
       <h:outputText style="font-size:10px; align:left;" value="#{paginationUtil.paginationLocation}" />
       </a4j:form>
       </h:panelGrid>
       </f:facet>
      </rich:dataTable>


      The variable paginationLocation is being set in the "walk" method and the problem is that the sentence lags behind by one ajax render no matter where or what I put rerenders.

      Example:

      First come to the page nothing is display, select page 2 it displays the sentence for page 1, select page 3 it displays sentence for page 2 etc.

      How can I get this to display properly or is there a better way to do the above?

      Thanks,

      Oliphaunt