Loading...
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.

Product icon
TUTORIAL

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.

OptionGroup unselect value?

Ricardo Pascoal
10 years ago Jan 12, 2012 7:36pm
Eric Roberge
10 years ago Jan 17, 2012 11:48am
Ricardo Pascoal
10 years ago Jan 18, 2012 12:34pm
Henri Sara
10 years ago Jan 18, 2012 2:40pm

Ricardo Pascoal: I have an OptionGroup (in Single Select Mode). I have set "setNullSelectionAllowed(true)". If a user selects an option in the OptionGroup it cannot "unselect" it, leaving all options unselected.

This is how the option group / radio buttons component works in most graphical environments - it is not possible to unselect after making a selection (if the component supports initial unselected state at all). You either need to add a "nothing" item or implement the custom logic in multiselect mode.

Last updated on Jan, 18th 2012
Ricardo Pascoal
10 years ago Jan 19, 2012 6:41pm