Description
Lets say I do this:
List<Option> _options = getOptions();
someRenderer = new ChoiceRenderer() {
...
}
DropDownChoice _ddc = new DropDownChoice("dropDown", new Model((Serializable) _option),options, someRenderer);
The Option class looks like this:
public class Option {
private String display_name;
private String id;
gettersAndSetters...
}
If I select an Option from the DDC, and that Option has id = -1, the AbstractSingleSelectChoice#getDefaultChoice(final Object selected) will interpret my choice as the protected static final String NO_SELECTION_VALUE = "-1" in AbstractSingleSelectChoice.java.
The result will be that the "Choose one" option is visible in the DDC.
Shouldn't the NO_SELECTION_VALUE be customizable?