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.
I am using viritin to develop forms with annotated fields (with @PropertyId). Now, I want to select multiple values out of a complete list of possible values. These values come from a jpa database. In effect, the selected values used in one-to-many or many-to-many relations.
My initial thought was to use TwinColSelect but then I saw that viritin also has fields for this purpose. Is there an example to look at that illustrates how to edit 1-n or n-m relationships?
Couple of example projects that use selects in Viritin:
https://github.com/mstahv/jpa-invoicer https://github.com/mstahv/jpa-addressbook https://github.com/mstahv/spring-data-vaadin-crud/tree/multiple-entities (special branch that has address and type for address as own entities)
Currently there is no proper multiselect with TwinColSelect implementation in Viritin :-( I have been thinking of one but never yet found the time for it. ATM I think it should be implemented with two Tables (or Grids) with filtering on top of the "available selections". This way it would suit for a really large set of options.