Author: pkawiak
Date: 2008-10-08 05:10:54 -0400 (Wed, 08 Oct 2008)
New Revision: 10689
Modified:
trunk/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableSelectionRendererContributor.java
Log:
Fixed a bug with component ignoring bound selection.
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-10-08
09:06:41 UTC (rev 10688)
+++
trunk/ui/extendedDataTable/src/main/java/org/richfaces/renderkit/html/TableSelectionRendererContributor.java 2008-10-08
09:10:54 UTC (rev 10689)
@@ -128,13 +128,14 @@
throw new FacesException(e);
}
- table.setSelection(simpleSelection);
ValueExpression selectionBinding = table
.getValueExpression("selection");
if (selectionBinding != null) {
selectionBinding.setValue(context.getELContext(),
simpleSelection);
+ }else{
+ table.setSelection(simpleSelection);
}
table.setRowKey(savedKey);
// ScrollableDataTableRendererState.restoreState(context);
Show replies by date