Hi,
i'm having problems localizing a title of a page.
there's one way to do that, from 'Pro Wicket' book. i need to have
following markup: <title><wicket:message key="page.title"/></title>. then
in locale specific properties files for every page i'll need to have
property page.title. which is an overkill since most of the pages will have
only one title property.
i'd like to do something like this:
abstract class BasePage : extends WebPage
{
public abstract String getPageTitle();
}
class HomePage : extends BasePage
{
public String getPageTitle() { return "Home"; }
}
and have "Home" property in Application.properties and
Application_es.properties files
i tried to use Label() with PropertyModel("pageTitle") but didn't work for
me. it rendered "Home" string all the time, no matter what the locale was.
any ideas how to do this?
Thanks,
Vadim
_________________________________________________________________
Interest Rates NEAR 39yr LOWS! $430,000 Mortgage for $1,299/mo - Calculate
new payment
http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-19132&moid=14888
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user