Author: konstantin.mishin
Date: 2008-07-02 06:59:41 -0400 (Wed, 02 Jul 2008)
New Revision: 9360
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
Log:
RF-3842
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
===================================================================
---
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2008-07-02
09:50:39 UTC (rev 9359)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2008-07-02
10:59:41 UTC (rev 9360)
@@ -640,7 +640,10 @@
grid.setFirst(Integer.parseInt(options.split(",")[1]));
}
}
- int value = grid.getFirst() % grid.getRows();
+ int value = 0;
+ if (grid.getRows() != 0) {
+ value = grid.getFirst() % grid.getRows();
+ }
component.getAttributes().put(ScrollableDataTableUtils.CLIENT_ROW_KEY, value);
composite.decode(context, component);
Show replies by date