We have a TODO in the code to fix this. When we add ctrl/shift+click support, we can fix the issue.
Thanks, John LaBanca [email protected] On Tue, Sep 21, 2010 at 3:56 AM, monkeyboy <[email protected]>wrote: > 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 > -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
