SWF-1066 - ManySelectionTrackingListDataModel and OneSelectionTrackingListDataModel don't track selections correctly when using a <rich:dataScroller> component
This commit is contained in:
@@ -59,7 +59,7 @@ public class ManySelectionTrackingListDataModel extends SerializableListDataMode
|
||||
}
|
||||
if (rowSelected && !selections.contains(getRowData())) {
|
||||
selections.add(getRowData());
|
||||
} else {
|
||||
} else if (!rowSelected) {
|
||||
selections.remove(getRowData());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ public class OneSelectionTrackingListDataModel extends SerializableListDataModel
|
||||
}
|
||||
|
||||
if (!rowSelected) {
|
||||
selections.clear();
|
||||
selections.remove(getRowData());
|
||||
} else if (rowSelected && !selections.contains(getRowData())) {
|
||||
selections.clear();
|
||||
selections.add(getRowData());
|
||||
|
||||
Reference in New Issue
Block a user