Class CheckGroup<T>

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

public class CheckGroup<T> extends FormComponent<Collection<T>>
Component used to connect instances of Check components into a group. Instances of Check have to be in the component hierarchy somewhere below the group component. The model of the CheckGroup component has to be an instance of java.util.Collection. The model collection of the group is filled with model objects of all selected Check components.

i.e. <span wicket:id="checkboxgroup"> ... <input type="checkbox" wicket:id="checkbox1">choice 1</input> ... <input type="checkbox" wicket:id="checkbox2">choice 2</input> ... </span>

Igor Vaynberg
See Also: