Author: konstantin.mishin
Date: 2008-12-10 08:58:28 -0500 (Wed, 10 Dec 2008)
New Revision: 11691
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java
Log:
RF-4164
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-12-10
13:37:40 UTC (rev 11690)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/renderkit/html/ScrollableDataTableBaseRenderer.java 2008-12-10
13:58:28 UTC (rev 11691)
@@ -872,9 +872,12 @@
public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
if(component instanceof UIScrollableDataTable){
-
- if(!onlyPartialUpdateNeeded(component)){
- super.encodeEnd(context, component);
+ UIScrollableDataTable table = (UIScrollableDataTable)component;
+ if(!onlyPartialUpdateNeeded(table)){
+ Object rowKey = table.getRowKey();
+ table.setRowKey(context, null);
+ super.encodeEnd(context, table);
+ table.setRowKey(context, rowKey);
}
}
}