Author: konstantin.mishin
Date: 2008-01-11 12:37:38 -0500 (Fri, 11 Jan 2008)
New Revision: 5313
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
Log:
PS-140
Modified:
branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java
===================================================================
---
branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2008-01-11
17:16:44 UTC (rev 5312)
+++
branches/3.1.x/ui/scrollableDataTable/src/main/java/org/richfaces/component/UIScrollableDataTable.java 2008-01-11
17:37:38 UTC (rev 5313)
@@ -93,12 +93,13 @@
int curentRow = getFirst();
+ int rows;
if(reqRowsCount == -1 ){
- reqRowsCount = getRows();
+ rows = getRows();
+ } else {
+ rows = reqRowsCount;
}
-
- int rows = reqRowsCount;
-
+
int rowsCount = getExtendedDataModel().getRowCount();
if(rows > 0){