He Marek,

The idea of Wicket i18n is that when you use a component, you can override its default texts with your own. That's why the lookup is top-down and not bottom-up.

To solve this you'll need to use a more fine-grained name for the home page's title.

Regards,
   Erik.



Marek Šabo write:
Hi all,

I have a question regarding property binding when using localized property files, consider following:

UserHomePage page has one property for localization and that is "title=User's Home" which is then used in markup as:

<head>
<title><wicket:message key=""title" /></title>
</head>
...

This page has inside an UserAddPanel with form with following properties:

formContainer.uaForm.title=Title
formContainer.uaForm.name=First Name
...

for markup:

<wicket:panel>
<div wicket:id="formContainer">
<form wicket:id="uaForm">
<label for="title"><wicket:message key="title" /></label>
<label for="name"><wicket:message key="name" /></label>
...

The name and other labels are generated fine (no reason not to) but the title is set to "User's Home" which is not desired. I would understood this behavior if I hadn't defined such 'fine-grained' property as formContainer.uaForm.title but why is it overriden when there is precise declaration on lower level? Is there a way to achieve behavior which I described or do I have to rename title in form to something else?

TIA,

Marek



--
Erik van Oosten
http://day-to-day-stuff.blogspot.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to