1 2 Previous Next 17 Replies Latest reply on Dec 14, 2009 5:51 AM by ilya_shaikovsky

    rich:scroller with scrollable dataTable

    ipraveenjain

      hi
      i have a problem with Rich:scrollar see the code

      <rich:scrollableDataTable id="deptListID2" binding="#{dept.myTable}"
       value="#{dept.deptListToAdd}" var="d"
       width="300px" height="150px" rows="3">
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Dept ID" />
       </f:facet>
       <h:outputText value="#{d.deptID}" />
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="Dept Name" />
       </f:facet>
       <h:outputText value="#{d.deptName}" />
       </rich:column>
      
       </rich:scrollableDataTable>
      
       <rich:datascroller for="deptListID2" maxPages="3"
       selectedStyle="font-weight:bold"></rich:datascroller>

      in this i have 10 record and rows is 3 , so scroller should have have 4 pages,
      but it is not giving proper record at last page and when it moves till last then i cannot move it back
      first page contains 1 2 3
      second contains 4 5 6
      third contains 7 8 9
      fourth should contains only 10 but give any three record
      and stops working , no exception
      but if i set rows=2 in scroable table then it works fine
      so please explain what i have to do to solve this problem.

        1 2 Previous Next