Author: konstantin.mishin
Date: 2007-09-03 13:34:50 -0400 (Mon, 03 Sep 2007)
New Revision: 2725
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java
Log:
small fix
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java
===================================================================
---
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java 2007-09-03
15:59:01 UTC (rev 2724)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java 2007-09-03
17:34:50 UTC (rev 2725)
@@ -229,6 +229,9 @@
* @return Returns the rowIndex.
*/
public int getRowIndex() {
+ if(_grid.getRows() != 0 && _rowIndex >= _grid.getRows()){
+ _rowIndex = 0;
+ }
return _rowIndex;
}
Show replies by date