If the MultiSelectionModel is used as a selection model for a CellList
items can only be selected but they can not be deselected. I found
this in svn 8815. The way to reproduce the bug is to replace the
following code in CwCellList from the showcase example:
// Add a selection model so we can select cells.
final SingleSelectionModel<ContactInfo> selectionModel = new
SingleSelectionModel<ContactInfo>(ContactDatabase.ContactInfo.KEY_PROVIDER);
cellList.setSelectionModel(selectionModel);
selectionModel.addSelectionChangeHandler(
new SelectionChangeEvent.Handler() {
public void onSelectionChange(SelectionChangeEvent event) {
contactForm.setContact(selectionModel.getSelectedObject());
}
});
with the following code:
// Add a selection model so we can select cells.
final MultiSelectionModel<ContactInfo> selectionModel = new
MultiSelectionModel<ContactInfo>(ContactDatabase.ContactInfo.KEY_PROVIDER);
cellList.setSelectionModel(selectionModel);
//selectionModel.addSelectionChangeHandler(
// new SelectionChangeEvent.Handler() {
// public void onSelectionChange(SelectionChangeEvent event) {
// contactForm.setContact(selectionModel.getSelectedObject());
// }
// });
--
http://groups.google.com/group/Google-Web-Toolkit-Contributors