Am 15.04.2011 15:55, schrieb tech7:
Any suggestion?
-
Wicket-Java
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Choose-One-problem-with-DropDownChoice-tp3451837p3452096.html
Sent from the Users forum mailing list archive at Nabble.com.
Any suggestion?
-
Wicket-Java
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Choose-One-problem-with-DropDownChoice-tp3451837p3452096.html
Sent from the Users forum mailing list archive at Nabble.com.
--
You can add to your application an Localizer that return the user designated
verbiage for the string key "null"
On Wed, Mar 24, 2010 at 12:51 PM, Matthias Keller
wrote:
> Hi Brad
>
> You'd probably have to subclass DropDownChoice and override the method
> getDefaultChoice() to return whatever val
Hi Brad
You'd probably have to subclass DropDownChoice and override the method
getDefaultChoice() to return whatever value you'd like.
Matt
On 2010-03-24 16:45, Brad Grier wrote:
I'd like to be able to change the "Choose One" text for a DropDownChoice
without using a property file. I have a
Call setRequired(false) on the dropdownchoice.
Regards,
Erik.
Gatos 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
I needed to do the same thing. I saw this on another post and it works
fine. Override getDefaultChoice:
protected CharSequence getDefaultChoice(Object selected)
{
return "Choose One";
}
You can use
getLocalizer().getString("yourpage.dropdownchoice.defaultvalue", this)
for your different langua
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,
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
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 wrote:
> add this in your .properties file
>
> yourForm.yourDropDownId.nullValid = Choose One (or what ever you wa
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 wrote:
> After I choose something in DropDownChoice then 'Choose one' item is removed
> from the list.
>
> If I will try to use "setN
10 matches
Mail list logo