Author: d.bulahov
Date: 2007-03-26 11:55:04 -0400 (Mon, 26 Mar 2007)
New Revision: 166
Modified:
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java
Log:
Modified:
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java
===================================================================
---
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java 2007-03-26
15:26:30 UTC (rev 165)
+++
trunk/richfaces/datascroller/src/main/java/org/richfaces/component/UIDatascroller.java 2007-03-26
15:55:04 UTC (rev 166)
@@ -356,9 +356,12 @@
int pageCount;
if (rows > 0) {
pageCount = rows <= 0 ? 1 : getRowCount() / rows;
- if (getRowCount() % rows >= 0) {
+ if (getRowCount() % rows > 0) {
pageCount++;
}
+ if (pageCount==0){
+ pageCount=1;
+ }
}
else {
rows = 1;
Show replies by date