Hello Tatu,
coming from Vaadin 8 I’ve tried to get your TwinColSelect Add-On running with Vaadin 21.0.1.
There seems to be a problem with newer version of Vaadin, because an inner class of Interface HasItemsAndComponents does not exist anymore.
This is only a problem of the Vaadin version compiled against.
After copying your code into my project for testing purposes made it successfully run.
Perhaps you code provide a new version compiled against the actual vaadin ?
I expected, that the order of a list of string items given by setItems
should be kept when moving items from right to left.
This is only the case, if I supply a sort comparator to the ListDataProvider.
I fixed by changing the following lines in method:
private void moveItems(…) {
…
//b+m begin keep the order as given
// if (dataProvider.getSortComparator() != null) {
sortDestinationList(list2, dataProvider);
// }
//b+m end
}
Best regards from the south west of the baltic sea
Sönke