RE: Localization of values coming from my Model

2009-10-19 Thread Bernhard Michal
No, javadoc is ok. You are right. My mistake, sorry. -Original Message- From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] Then is the javadoc wrong? This was taken right from the javadoc? http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/org/apache/wic

Re: Localization of values coming from my Model

2009-10-19 Thread Olivier Bourgeois
Use the StringResourceModel with properties bundle, it is very powerful because you can add dynamic data coming from the model. I've done some things like this, assuming infoModel.dateFormat() returns a formated date : new Label(tableTitle, new StringResourceModel(table.title, this, new

Localization of values coming from my Model

2009-10-16 Thread Jeffrey Schneller
I am trying to display a page using my CompoundPropertyModel however some of the values coming from the model need to be localized before displaying to the user. This is being done inside of a wizard step. For example: My model has the following properties String gender boolean

RE: Localization of values coming from my Model

2009-10-16 Thread Bernhard Michal
, 2009 4:36 PM To: users@wicket.apache.org Subject: Localization of values coming from my Model I am trying to display a page using my CompoundPropertyModel however some of the values coming from the model need to be localized before displaying to the user. This is being done inside of a wizard

RE: Localization of values coming from my Model

2009-10-16 Thread Jeffrey Schneller
Michal [mailto:michal.bernh...@tigra.cz] Sent: Friday, October 16, 2009 1:39 PM To: users@wicket.apache.org Subject: RE: Localization of values coming from my Model Why don't you use special model for each component? Because this is very specific thing - CompoundPropertyModel is not supposed

RE: Localization of values coming from my Model

2009-10-16 Thread Bernhard Michal
It doesn't seem correct... StringResourceModel expect string which is supposed to be resource key to find localization in resource bundle. I recommend you to read http://cwiki.apache.org/WICKET/localization-and-skinning-of-applications .html. -Original Message- From: Jeffrey Schneller

RE: Localization of values coming from my Model

2009-10-16 Thread Jeffrey Schneller
a coat to be safe -Original Message- From: Bernhard Michal [mailto:michal.bernh...@tigra.cz] Sent: Friday, October 16, 2009 2:15 PM To: users@wicket.apache.org Subject: RE: Localization of values coming from my Model It doesn't seem correct... StringResourceModel