I have a table with a lot of items (±200), when I use shift-click to select them all (click first item, scroll down with scrollbar and hold shift + click last item.) it appears only a number of items at the end of the list are selected.
From the 200 items only around 50 are returned with table.getValue().
The number of returned items depends on the ‘height’ of the list (the pixels that is).
If I scroll up after selecting them all, the selection is also gone visually.
Selecting them all in code works fine, also after scrolling through the table.
Is anyone experiencing the same problem? Has anyone a solution for this?
There is indeed a bug in the default Vaadin table when shift-clicking the first time.
But that is not the problem, problem is that it seems everything is selected but only last x items are selected.
I think the Table only selects the items in the visible page and within the cache area on the client side. I’ve also seen this behavior and it’s clearly a bug. If you don’t have too many rows, you could just call setCacheRate with a sufficiently high number on your table and it should work then.