Hello Eyal,
you did override #localizeDisplayValues() to return true, didn't you?
Sven
Eyal Golan schrieb:
I can but I thought there might be a way with the properties file.
Like the one with the null value.
Eyal
On Tue, May 27, 2008 at 11:15 AM, Martin Makundi <
[EMAIL PROTECTED]> wrote:
Why do you not use the dropdownchoice constructor argument
IChoiceRenderer. There you can easily convert your NO_UNIVERSE to
something else.
**
Martin
2008/5/27 Eyal Golan <[EMAIL PROTECTED]>:
Another question:
It works wonderful with the component1Id.null=Choose type.
But what if want to render a specific value in the dropdown.
I have this:
DropDownChoice result =
new DropDownChoice("universeSelect", new
PropertyModel(this,
"universeName"),
universeNames);
where universeNames is a List of <String>.
One item in this List is a special case: String NO_UNIVERSE =
"_no_universe"
I tried to put in the properties file this:
universeSelect.null=Choose Universe
universeSelect._no_universe=No Universe
The first line works just fine.
The second line is not rendered and I still see _no_universe in my
DropDown.
What (if there is any) the way to put this in the property file?
Thanks
On Thu, May 22, 2008 at 12:00 AM, Martin Makundi <
[EMAIL PROTECTED]> wrote:
Duh, that was easy. Actually what I was looking for is
component1Id.null=Choose type
component2Id.null=Choose date
but thank you very much!
2008/5/21 Maurice Marrink <[EMAIL PROTECTED]>:
In the properties file for your page do:
component1Id.nullValid=Choose type
component2Id.nullValid=Choose date
Instead of just the id you can also include the (partial) path,
working your way to the top from the component you are trying to use.
Maurice
On Wed, May 21, 2008 at 8:08 PM, Martin Makundi
<[EMAIL PROTECTED]> wrote:
Hi!
Does the Wicket localizer support overriding localization for each
component? This is what I have:
add(new DropDownChoice(TYPE_PICKER, typeChoices));
add(new DropDownChoice(DATE_PICKER, dateChoices));
I would like to localize the null choice differently. Now it reads
"Choose one" for both dropdowns.
What I would like is for the TYPE_PICKER to dispay "Choose type" and
the DATE_PICKER to display "Choose date".
Can this be overcome using xx.properties files or do I have to create
a dummy "un-selected" element? The AbstractSingleSelect class renders
null as follows:
if (Strings.isEmpty(option))
{
option = getLocalizer().getString("null", this, CHOOSE_ONE);
}
**
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Eyal Golan
[EMAIL PROTECTED]
Visit: http://jvdrums.sourceforge.net/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]