Author: pgolawski
Date: 2008-09-22 08:31:05 -0400 (Mon, 22 Sep 2008)
New Revision: 10524
Modified:
trunk/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableSelectionRendererContributor.java
Log:
RF-4505, remember row key and restore it after walk
Modified:
trunk/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableSelectionRendererContributor.java
===================================================================
---
trunk/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableSelectionRendererContributor.java 2008-09-22
10:43:43 UTC (rev 10523)
+++
trunk/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableSelectionRendererContributor.java 2008-09-22
12:31:05 UTC (rev 10524)
@@ -84,6 +84,7 @@
// final ScrollableDataTableRendererState state =
// ScrollableDataTableRendererState.createState(context, grid);
// state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
+ Object savedKey = table.getRowKey();
final TableHolder holder = new TableHolder(table);
@@ -134,9 +135,9 @@
selectionBinding.setValue(context.getELContext(),
simpleSelection);
}
+ table.setRowKey(savedKey);
+ // ScrollableDataTableRendererState.restoreState(context);
}
-
- // ScrollableDataTableRendererState.restoreState(context);
}
/*
@@ -244,6 +245,7 @@
// final ScrollableDataTableRendererState state =
// ScrollableDataTableRendererState.createState(context, grid);
// state.setRowIndex(ScrollableDataTableUtils.getClientRowIndex(grid));
+ Object savedKey = table.getRowKey();
final TableHolder holder = new TableHolder(table);
@@ -274,6 +276,7 @@
}, holder);
// ScrollableDataTableRendererState.restoreState(context);
+ table.setRowKey(savedKey);
table.getAttributes().put(CLIENT_SELECTION, clientSelection);
}