https://issues.apache.org/jira/browse/WICKET-2161
// Ulrik ulrik wrote: > > Okay, I will see If I can figure out how :) > I have never done that > > > igor.vaynberg wrote: >> >> please open a jira issue. >> >> -igor >> >> On Wed, Mar 11, 2009 at 1:32 AM, ulrik <[email protected]> wrote: >>> >>> Hello! >>> >>> I have an issue with the DropDownChoice (wicket 1.3.4). >>> >>> 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? >>> >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22451464.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> >> > > -- View this message in context: http://www.nabble.com/DropDownChoice-NO_SELECTION_VALUE-static-field-tp22451464p22471229.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
