Does anyone know of a simple way to have more than one option with a
null value in a DropDownChoice?

Like:

--- Any Name ----
--- Names Don't Matter ----
George
Peter
Anne
Linda

Where "--- Names Don't Matter -----" would have a null value, just
like "Any Name"

I've tried adding a null value to the list of choices and then, in
getDisplayValue(), providing a display value for null value.

This will actually create the menu fine during initial render.

However, when I submit my form and the menu is re-rendered (this is a
non-Ajax filter form that is always displayed above search results, so
it is always re-rendered after form submit), I run into an NPE in
AbstractSingleSelectChoice.

Anybody have any ideas? Much appreciated!

Ilja

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

Reply via email to