SWF-1066 - ManySelectionTrackingListDataModel and OneSelectionTrackingListDataModel don't track selections correctly when using a <rich:dataScroller> component

This commit is contained in:
Jeremy Grelle
2009-03-16 14:46:47 +00:00
parent 068eac18e5
commit c9194d119c
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ public class ManySelectionTrackingListDataModel extends SerializableListDataMode
}
if (rowSelected && !selections.contains(getRowData())) {
selections.add(getRowData());
} else {
} else if (!rowSelected) {
selections.remove(getRowData());
}
}

View File

@@ -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());