Loading...
Important Notice - Forums is archived

To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

BeanItemContainer & Grid selection, how to use GetItem() with only Object

Alisa Lee
5 years ago Jun 06, 2016 9:31pm
Tom Rauchenwald
5 years ago Jun 07, 2016 7:43am

Just a guess, but it could be that the selection model still has references to the previously selected beans.
When you do beanHolder.removeAllItems(); could you try to do a 

grid.setSelectionMode(SelectionMode.NONE);
grid.setSelectionMode(SelectionMode.MULTI);

This should re-initialize the selection model, if it works then that's the issue. 
 

Alisa Lee
5 years ago Jun 07, 2016 2:25pm