you need to have an actual value in the choices collection that
represents the "any" option. you can do this by prepending "null" to
your choices collection, letting the renderer render it as "any" and
calling setnullvalid(true) on the ddc.

-igor

On Wed, Jul 7, 2010 at 1:55 PM, Matthew Welch <matt...@welchkin.net> wrote:
> I'm sure this has been answered before but I've a good bit searching the
> list and can't seem to find it...
>
> I need to add an option to a DropDownChoice that displays the word "Any" and
> will be treated differently than the other options. I've hacked an
> IChoiceRenderer to death and managed to get the option to display but
> obviously when the form is submitted and Wicket tries to update the model
> things fall apart. I'm clearly doing things wrong at a very basic level
>
> This doesn't seem like isn't an unusual use case so I assume I'm probably
> missing something obvious, but I could sure use some help seeing it.
>

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

Reply via email to