Author: vmolotkov
Date: 2008-09-02 13:03:38 -0400 (Tue, 02 Sep 2008)
New Revision: 10281
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java
Log:
https://jira.jboss.org/jira/browse/RF-4368
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java
===================================================================
---
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java 2008-09-02
16:56:28 UTC (rev 10280)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/MultiColumnSortListener.java 2008-09-02
17:03:38 UTC (rev 10281)
@@ -15,6 +15,7 @@
import org.richfaces.component.util.ColumnUtil;
import org.richfaces.model.SortField;
import org.richfaces.model.SortOrder;
+import org.richfaces.model.selection.SimpleSelection;
/**
* Implementation of sortListener for multi-column sorting
@@ -33,6 +34,10 @@
*/
public void processSort(SortEvent e) {
UIScrollableDataTable grid = (UIScrollableDataTable) e.getComponent();
+
+ //fix
https://jira.jboss.org/jira/browse/RF-4368
+ ((SimpleSelection) grid.getSelection()).clear();
+
String sortColumn = e.getSortColumn();
UIComponent column = grid.findComponent(sortColumn);
Modified:
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java
===================================================================
---
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java 2008-09-02
16:56:28 UTC (rev 10280)
+++
trunk/ui/scrollableDataTable/src/main/java/org/richfaces/event/sort/SingleColumnSortListener.java 2008-09-02
17:03:38 UTC (rev 10281)
@@ -10,6 +10,7 @@
import org.richfaces.component.util.ColumnUtil;
import org.richfaces.model.SortField;
import org.richfaces.model.SortOrder;
+import org.richfaces.model.selection.SimpleSelection;
/**
* @author Maksim Kaszynski
@@ -27,6 +28,10 @@
*/
public void processSort(SortEvent e) {
UIScrollableDataTable grid = (UIScrollableDataTable) e.getComponent();
+
+ //fix
https://jira.jboss.org/jira/browse/RF-4368
+ ((SimpleSelection) grid.getSelection()).clear();
+
String sortColumn = e.getSortColumn();
UIComponent column = grid.findComponent(sortColumn);