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

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

OptionGroup unselect value?

Ricardo Pascoal
1 decade ago Jan 12, 2012 7:36pm
Eric Roberge
1 decade ago Jan 17, 2012 11:48am
Ricardo Pascoal
1 decade ago Jan 18, 2012 12:34pm
Henri Sara
1 decade 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
1 decade ago Jan 19, 2012 6:41pm