3 Replies Latest reply on Aug 8, 2008 7:30 AM by Ilya Shaikovsky

    <rich:dataScroller> problem

    k dcosta Newbie

      Hi

      I am using a scrollable datatable. I have given a datascroller for this because its taking much time to load the whole table.Also i have set the row attribute to 10.
      My problem is that, if the last set to values in the database is less than the row attribute value (here 10), the datascroller is not showing those value.So that last entered values in the database are not seen.Its showing only the multiples of row attribute set.

      Anyone know how to correct it?????

      Plz help me.

      Kdcosta

        • 1. Re: <rich:dataScroller> problem
          Ilya Shaikovsky Master

          please show your code.

          Do you mean that last page exist but if you click on this page it's empty?

          • 2. Re: <rich:dataScroller> problem
            k dcosta Newbie

            Thank u for the reply.
            Data scroller is not showing the page for the last set of values from the database.Instead if we select the last page from the scroller, the grid will show the first set values itself.ie the first page and the last page shows the same set of values.

            By code as follows

            <rich:scrollableDataTable value="#{programManager.listType}"
             var="program" width="100%" height="200px" rowKeyVar="rkv"
             id="pgmList" rowClasses=" row1, row2"
             selectedClass="gridselectedRow" rows="10"
             selection="#{programBean.selection}" onselectionchange="invokeGridSelectButton('pgmForm:btnSelection')">
            
             <rich:column width="253" id="pgmid" headerClass="listhead"
             sortable="false">
            
             <f:facet name="header">
            
             <h:outputText value="#{programManager.id}" id="h_proId" />
            
             </f:facet>
            
             <h:outputText value="#{program.programID}" id="proId"></h:outputText>
             </rich:column>
            
             <rich:column width="347" id="pgmname" headerClass="listhead"
             sortable="false">
            
             <f:facet name="header">
            
             <h:outputText value="#{programManager.name}" id="h_proName" />
            
             </f:facet>
            
             <h:outputText value="#{program.programName}" id="proName"></h:outputText>
            
             </rich:column>
            
             <rich:column width="352" id="pgmnewName" headerClass="listhead"
             sortable="false">
            
             <f:facet name="header">
            
             <h:outputText value="New Name" id="h_proNew" />
            
             </f:facet>
            
            
             <h:outputText value="#{program.newName}" id="proNew"></h:outputText>
             </rich:column>
            
             </rich:scrollableDataTable>
             <rich:datascroller for="pgmList"></rich:datascroller>


            • 3. Re: <rich:dataScroller> problem
              Ilya Shaikovsky Master

              Scrollable table has own scroll and was nevere declared compatible wi datascroller component.