> 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?

You can do something like this:

new Label( componentId, new StringResourceModel( "pageTitle", this, new
Model() ) );

In your properties file:
pageTitle=Home

In your html:
<span wicket:id="componentId">Dummy text</span>


Look for StringResourceModel in ProWicket or in the API docs.


HTH
Dave




-------------------------------------------------------------------------
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
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to