Fix for SWF-692

This commit is contained in:
Jeremy Grelle
2008-05-21 20:43:51 +00:00
parent e2df3dbc98
commit bcf71e04cc
2 changed files with 10 additions and 3 deletions

View File

@@ -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 {

View File

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