Author: konstantin.mishin
Date: 2009-04-21 10:54:45 -0400 (Tue, 21 Apr 2009)
New Revision: 13732
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
Log:
RF-5054
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 2009-04-21
14:32:45 UTC (rev 13731)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2009-04-21
14:54:45 UTC (rev 13732)
@@ -560,7 +560,7 @@
}
state.setFake(false);
}
- state.setRowIndex(0);
+ state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
grid.setRowKey(null);
}
@@ -617,7 +617,8 @@
}
public void setUpState(FacesContext context, UIScrollableDataTable grid) {
- ScrollableDataTableRendererState.createState(context, grid);
+ ScrollableDataTableRendererState state =
ScrollableDataTableRendererState.createState(context, grid);
+ state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
}
public void tearDownState(FacesContext context, UIScrollableDataTable grid){
Show replies by date