Class DropDownChoice<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
Direct Known Subclasses:
GroupedDropDownChoice, ListChoice

public class DropDownChoice<T> extends AbstractSingleSelectChoice<T>
A choice implemented as a dropdown menu/list.


 List SITES = Arrays.asList(new String[] { "The Server Side", "Java Lobby", "Java.Net" });
 // Add a dropdown choice component that uses Input's 'site' property to designate the
 // current selection, and that uses the SITES list for the available options.
 // Note that when the selection is null, Wicket will lookup a localized string to
 // represent this null with key: "id + '.null'". In this case, this is 'site.null'
 // which can be found in
 form.add(new DropDownChoice("site", SITES));
        <select wicket:id="site">
                <option>site 1</option>
                <option>site 2</option>

Jonathan Locke, Eelco Hillenius, Johan Compagner
See Also: