Is there currently a way to emmulate or replicate the HTML tag on Vaadin? I want to display a list of options grouped by some criteria in the following fashion:
The option grouping is currently not implemented in the selection components. I guess it should use HierarchicalContainer as the data model. Made a ticket for this (
#4639 ).
For Vaadin ComboBox, this might be quite complex to implement before a rewrite of the client side of ComboBox (VFilterSelect), which we hope to do at some point.
It might be somewhat easier to do limited support for NativeSelect, but there the HTML/DOM select element restricts what is possible (e.g. no nested optgroups). Still, not done at the moment.
Any update on this?
It would be usefull for either NativeSelect or Combobox to use the Optgroup since it provides a better user experience if many data have to be shown to the user, and minimize the number of comboboxe’s (i.e. instead of having one combo for Swedish cars and another for the Cars brands,