Author: konstantin.mishin
Date: 2007-08-30 09:59:06 -0400 (Thu, 30 Aug 2007)
New Revision: 2610
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
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/ScrollableDataTableBaseRenderer.java
===================================================================
---
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-08-30
13:49:39 UTC (rev 2609)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2007-08-30
13:59:06 UTC (rev 2610)
@@ -455,6 +455,7 @@
}
state.setFake(false);
+ state.setRowIndex(0);
grid.setRowKey(null);
}
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-08-30
13:49:39 UTC (rev 2609)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableRendererState.java 2007-08-30
13:59:06 UTC (rev 2610)
@@ -229,9 +229,6 @@
* @return Returns the rowIndex.
*/
public int getRowIndex() {
- if((_grid.getRows() != 0 && _rowIndex >= _grid.getRows()) || _rowIndex >=
_grid.getRowCount()){
- _rowIndex = 0;
- }
return _rowIndex;
}
Show replies by date