You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by lang <de...@telfort.nl> on 2012/07/08 22:44:22 UTC
How to read message properties that has parameters into a program
I have a program that's gonna send an email confirmation to a customer.
The email text is stored in a property file.
How can I read these values with substitution parameters?
I'm aware of getString("key") but that has has parameters
Example of one property:
mail01=Dear {customer}, we confirm ... blablabla
What Java code do I need to use?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-read-message-properties-that-has-parameters-into-a-program-tp4650410.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to read message properties that has parameters into a program
Posted by Thomas Götz <to...@decoded.de>.
Have a look at org.apache.wicket.model.StringResourceModel.
-Tom
On 08.07.2012, at 22:44, lang wrote:
> I have a program that's gonna send an email confirmation to a customer.
> The email text is stored in a property file.
> How can I read these values with substitution parameters?
> I'm aware of getString("key") but that has has parameters
>
> Example of one property:
> mail01=Dear {customer}, we confirm ... blablabla
> What Java code do I need to use?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org