Thank you. The case is solved. Maybe it would be a good idea to add nullValid to Wicket global translation files, then it won't be needed to create a new record in my file. nullValid could be used if I wan't something to override. It's something similar to Convention over Configuration.
On Thu, Aug 27, 2009 at 4:12 PM, Matthias Keller <matthias.kel...@ergon.ch>wrote: > Hi > The implementation tries these keys: > getId() + ".nullValid" > "nullValid" > > So you could also have a global 'nullValid' entry somewhere in your > resources which would be the default for ALL AbstractSingleSelectChoices > such as DropDownChoice and RadioChoice > > Matt > > > Gatos wrote: > >> Is it possible to reuse existing translation - I like 'Choose one'? >> >> If my app has 32 languages, then I should create 32 records in each file? >> >> >> On Thu, Aug 27, 2009 at 3:58 PM, Dipu <dipu....@googlemail.com> wrote: >> >> >> >>> add this in your .properties file >>> >>> yourForm.yourDropDownId.nullValid = Choose One (or what ever you want >>> to appear) >>> >>> regards >>> >>> >>> On Thu, Aug 27, 2009 at 1:45 PM, Gatos<ega...@gmail.com> wrote: >>> >>> >>>> After I choose something in DropDownChoice then 'Choose one' item is >>>> >>>> >>> removed >>> >>> >>>> from the list. >>>> >>>> If I will try to use "setNullValid(true)" then 'Choose one' string is >>>> replaced with '' (emptry string). >>>> >>>> How is it possible to display 'Choose one' if another item has been >>>> selected? >>>> >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >>> >> >> >> > >