Class RadioChoice<T>

Type Parameters:
T - The model object type
All Implemented Interfaces:
Serializable, Iterable<Component>, IEventSink, IEventSource, IFeedbackContributor, IConverterLocator, IGenericComponent<T,FormComponent<T>>, IMetadataContext<Serializable,Component>, IFormModelUpdateListener, IFormVisitorParticipant, ILabelProvider<String>, IHeaderContributor, IRequestableComponent, IHierarchical<Component>, IClusterable

public class RadioChoice<T> extends AbstractSingleSelectChoice<T>
A choice subclass that shows choices in radio style.


 List SITES = Arrays.asList(new String[] { "The Server Side", "Java Lobby", "Java.Net" });
 // Add a radio choice component that uses Input's 'site' property to designate the
 // current selection, and that uses the SITES list for the available options.
 form.add(new RadioChoice("site", SITES));
    <span style="vertical-align: top;" wicket:id="site">
        <input type="radio">site 1</input>
        <input type="radio">site 2</input>

Jonathan Locke, Igor Vaynberg (ivaynberg)
See Also: