Author: konstantin.mishin
Date: 2008-03-18 08:11:44 -0400 (Tue, 18 Mar 2008)
New Revision: 6897
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
Log:
RF-2477
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
===================================================================
---
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2008-03-18
11:42:20 UTC (rev 6896)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2008-03-18
12:11:44 UTC (rev 6897)
@@ -394,7 +394,12 @@
}
private void checkRange() {
- int rows = getRows();
+ int rows;
+ if(reqRowsCount == -1 ){
+ rows = getRows();
+ } else {
+ rows = reqRowsCount;
+ }
if (getRowCount() < getFirst() + rows) {
setFirst(0);
setScrollPos("0,0," + rows);
Show replies by date