Wicket Remove

wicket.markup.html.form.RadioChoice

[back to the reference]

A RadioChoice component lets users select a single value from a group of radio buttons.

Select your favorite site


Behind the Scenes

Example HTML

<span valign="top" wicket:id="site">
<input type="radio">site 1</input>
<input type="radio">site 2</input>
</span>

Example Code

private static final List SITES = Arrays.asList(new String[] { "The Server Side", "Java Lobby", "Java.Net" });
...
    // Add a radio choice component that uses the model object's 'site' property to designate the
    // current selection, and that uses the SITES list for the available options.
    form.add(new RadioChoice("site", SITES));

Further examples & and comments/explanations may be available in the source code.