Arguments for messages expression ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Arguments for messages expression ?

Jan Goyvaerts
Is it possible to pass arguments in a message expression ? Consider a resource bundle where: ... introduction=hello {0} ! ... And suppose I get the name of the person as a variable in the template. Say named "name". And say the variable has the value "John". ---- How to I get ${name} into #{introduction} ? That is, how do I get "Hello John !" ? TIA !!! Jan
Reply | Threaded
Open this post in threaded view
|

Re: Arguments for messages expression ?

Zemi
Administrator
Hello,

use
    #{introduction(${name})}

If you need several arguments, separate them by commas.

Reply | Threaded
Open this post in threaded view
|

Re: Arguments for messages expression ?

Jan Goyvaerts
great ! :-) 

On Mon, Mar 25, 2013 at 5:02 PM, Zemi [via Thymeleaf - User Forum] <[hidden email]> wrote:
Hello,

use
    #{introduction(${name})}

If you need several arguments, separate them by commas.




If you reply to this email, your message will be added to the discussion below:
http://forum.thymeleaf.org/Arguments-for-messages-expression-tp4025812p4025813.html
To unsubscribe from Arguments for messages expression ?, click here.
NAML