|
The value of dropDownInitial
is not used, instead it uses the first object from the model. So instead of displaying whats held in
dropDownInitial it displays the object from the model. -regards Nino From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner what doesn't work
exactly? On 4/5/06, Nino Wael
<[EMAIL PROTECTED]> wrote: Hi I looked at the dialog between Igor and Stefan, thought what a nice way
to select the default value with the property model. However and then
remembered why it did not do it that way, I wanted to replace the Choose One
text with something else, well at least in some cases. Im replacing the text by
overriding the getDefaultChoice method. However that doesn't seem to work any
longer(im pretty sure I had it working with wicket 1.1.1), see sniplet below?
Also I noticed these lines in the documentation : // Note that when the selection is null, Wicket will lookup a localized string to // represent this null with key: "id + '.null'". In this case, this is 'site.null' // which can be found in DropDownChoicePage.properties form.add(new DropDownChoice("site", SITES));
|
- Re: [Wicket-user] wicket 1.2 beta 2 DropDownChoice default... Johan Compagner
- RE: [Wicket-user] wicket 1.2 beta 2 DropDownChoice de... Nino Wael
- Re: [Wicket-user] wicket 1.2 beta 2 DropDownChoic... Johan Compagner
- SV: [Wicket-user] wicket 1.2 beta 2 DropDownC... Nino Wael
- Re: [Wicket-user] wicket 1.2 beta 2 DropDownC... Johan Compagner
