override the getDefaultChoice() and generate a <option><option> (yes empty) and the if selected is also empty generate <option selected=true><option>
On Fri, Feb 20, 2009 at 15:31, pixologe <[email protected]> wrote: > > I tried overriding getDefaultChoice already, returning an empty string, > this > did not work, unfortunately. > > The 'Please choose one' option is not rendered, however the first 'normal' > option gets selected instead. > Also, inside AbstractSingleSelectChoice, there remains an empty string in > the options list, letting my ChoiceRenderer stumble when it tries to > interpret my idExpression :( > > If there are any more ideas regarding to this, please let me know. > > Thanks so far! > > btw.: nullValid is the correct 'Please choose one' string resource key > > > > Sergio García wrote: > > > > I guess that if you simply override the dropdownchoice i18n property > value > > for that component/page with a plain "" it may work. > > > > DropDownChoice property key for "Please choose one" is "null", or at > least > > i remember that. > > > > > > > > -- > View this message in context: > http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22120404.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] > >
