Fix for SWF-692
This commit is contained in:
@@ -54,6 +54,9 @@ public class ManySelectionTrackingListDataModel extends SerializableListDataMode
|
||||
}
|
||||
|
||||
public void setSelected(boolean rowSelected) {
|
||||
if (!isRowAvailable()) {
|
||||
return;
|
||||
}
|
||||
if (rowSelected && !selections.contains(getRowData())) {
|
||||
selections.add(getRowData());
|
||||
} else {
|
||||
|
||||
@@ -64,11 +64,15 @@ public class OneSelectionTrackingListDataModel extends SerializableListDataModel
|
||||
}
|
||||
|
||||
public void setSelected(boolean rowSelected) {
|
||||
if (rowSelected && !selections.contains(getRowData())) {
|
||||
if (!isRowAvailable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!rowSelected) {
|
||||
selections.clear();
|
||||
} else if (rowSelected && !selections.contains(getRowData())) {
|
||||
selections.clear();
|
||||
selections.add(getRowData());
|
||||
} else if (!rowSelected) {
|
||||
selections.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user