Class Radio<T>

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

public class Radio<T> extends LabeledWebMarkupContainer implements IGenericComponent<T,Radio<T>>
Component representing a single radio choice in a org.apache.wicket.markup.html.form.RadioGroup. Must be attached to an <input type="radio" ... > markup.

STATELESS NOTES: By default this component cannot be used inside a stateless form. If it is desirable to use this inside a stateless form then

  • override #getValue() and return some stateless value to uniquely identify this radio (eg relative component path from group to this radio)
  • override getStatelessHint() and return true

Author:
Igor Vaynberg, Sven Meier (svenmeier)
See Also: