please open a jira issue.

-igor

On Wed, Mar 11, 2009 at 1:32 AM, ulrik <ulrik.hagb...@gmail.com> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to