public class OptionalSingleValueChosenDropDown extends org.apache.wicket.markup.html.form.ListMultipleChoice<String>
This is a hack. Wicket has a DropDownChoice but it always insists on providing a "Please choose..." text as the first entry, in case the model is null. We don't want that, as this is done in Javascript. HOWEVER: the multiple="true" means we get multiple-select which we don't want. AND: If there is no "" option then the "X" doesn't appear, so we allow that as a valid option
| Constructor and Description |
|---|
OptionalSingleValueChosenDropDown(String wicketId,
org.apache.wicket.model.IModel<String> model,
List<String> choices) |
getModelValue, isRetainDisabledSelected, setMaxRows, setRetainDisabledSelected, updateModelgetChoiceRenderer, getChoices, onComponentTagBody, setChoiceRenderer, setChoices, setChoices, setTypeadd, add, checkRequired, clearInput, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputChanged, invalid, isInputNullable, isMultiPart, isRequired, isValid, newValidatable, processChildren, processInput, remove, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, updateCollectionModel, valid, validate, visitComponentsPostOrder, visitFormComponentsPostOrdergetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, remove, remove, removeAll, renderAssociatedMarkup, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, afterRender, beforeRender, canCallListenerInterface, configure, continueToOriginalDestination, debug, detach, detachModels, determineVisibility, error, fatal, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getId, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isEnableAllowed, isEnabled, isEnabledInHierarchy, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onEvent, prepareForRender, redirectToInterceptPage, remove, remove, render, rendered, renderHead, renderHead, renderHead, replaceWith, sameInnermostModel, sameInnermostModel, send, setDefaultModelObject, setEnabled, setEscapeModelStrings, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warnequals, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliterator