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.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 1 month ago
BeanFieldGroup<Entity> : OptionGroup with MultiSelect
I want to bind a multiselect OptionGroup to my Entity which holds an List<Entity>.
I did it like this:
OptionGroup kategorieInput = new OptionGroup("Kategorien");
kategorieInput.setContainerDataSource(new BeanItemContainer<>(Kategorie.class, kategorieDataSource.holeAlleKategorien()));
kategorieInput.setMultiSelect(true);
itemBinder.bind(kategorieInput, "kategorien");
where "kategorien" is a java.util.List<Kategorie> in my Entity...
But everytime I try to commit i get the following Exception:
Caused by: com.vaadin.data.util.converter.Converter$ConversionException: Unable to convert value of type java.util.LinkedHashSet to model type interface java.util.List. No converter is set and the types are not compatible.
Is there a way to implement a converter for this problem?
I tried to implement the Interface Converter<PRESENTATION, MODEL>, but I can't assign it to my Optiongroup...
Hope someone knows a workaround!
Thanks in advance!
Last updated on
You cannot reply to this thread.