How do I get the checked item or items in a CheckBoxGroup


I am new to Vaadin and I am starting with Vaadin 8.0 and going through demos.

Please advise how to get the checked item or items in a CheckBoxGroup. A pointer to an example would be appreciated. I can get the count of items check from a demo, but I don’t see the intelli-sense option to get the selected item or items.


Check the Sampler - in the Source tab (behind the (i) button), you’ll see one way, which is getValue() for the value change event. If you want to read them later, you can also use getValue() for the CheckBoxGroup instance.


Thank you so much for pointing me to the website. I appreciate it. This is a pretty cool and helpful website.

Good to hear that you found it helpful :slight_smile: