Re: Usage of getString with parameters (model?)

2008-11-22 Thread Ernesto Reinaldo Barreiro
Good you found that you needed on your own ( :-) ) and additionally now you know why it works as it does! My point is: sometimes there is no better documentation that the source code itself: documentation could be out-dated but the code will never be... Best, Ernesto Eyal Golan wrote: A

Re: Usage of getString with parameters (model?)

2008-11-21 Thread Eyal Golan
A small addition, if anyone encounters this situation. After trying the new Model[]{bla}, it still didn't work for me. Looking at the code (Ernesto ;) ), I saw in PropertyVariableInterpolator.interpolate(...) that it is looking for a ${ mark. So in my properties file I had to change to be:

Usage of getString with parameters (model?)

2008-11-18 Thread Eyal Golan
Hi, I have a key in the property file: Reports.ReportTitle.SuspectedConnectionsUserRes = Suspected User-Resource Connections by {0} Pattern Report I want to use getString(Reports.ReportTitle.SuspectedConnectionsUserRes, SOMETHING); to get the value with the {0} substituted. I'm not sure how to do

Re: Usage of getString with parameters (model?)

2008-11-18 Thread Nino Saturnino Martinez Vazquez Wael
Igor wrote something about it in a thread with validators.. But heres my cut: add(new Label(confirmation.content, new StringResourceModel( confirmation.content, this, eventModel))); and in property file: confirmation.content=You are about to create event

Re: Usage of getString with parameters (model?)

2008-11-18 Thread Ernesto Reinaldo Barreiro
Hi Eyal, If you open the Component class you will see a method: public String getString(final String key, final Component component, final IModel? model, final String defaultValue) throws MissingResourceException { } which finds a localizer... an Localizer after locating the key calls to

Re: Usage of getString with parameters (model?)

2008-11-18 Thread Eyal Golan
Nino, Ernesto, Thanks. Ernesto, I actually looked into the code that you showed. I was a bit confused and that's why I asked. I think your solution will help me. Thanks. Eyal Golan [EMAIL PROTECTED] Visit: http://jvdrums.sourceforge.net/ LinkedIn: http://www.linkedin.com/in/egolan74 P Save