When does MessageExpression end with ')' ??

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

When does MessageExpression end with ')' ??

sunil0791
Hi,

when does  MessageExpression end with ')' ??
I wanted to know when does
if (trimmedInput.endsWith(String.valueOf(PARAMS_END_CHAR)))
become true in
 static MessageExpression parseMessage(final String input)
 method in
 org.thymeleaf.standard.expression.MessageExpression
 Class
Reply | Threaded
Open this post in threaded view
|

Re: When does MessageExpression end with ')' ??

danielfernandez
Administrator
A message expression can end in ")" when it contains parameters. Messages can have parameter placeholders, like:

page.welcome=Hello {0}, welcome to our website!

And that "{0}" can be passed as a parameter by using "#{page.welcome('John')}"

Regards,
Daniel.
Reply | Threaded
Open this post in threaded view
|

Re: When does MessageExpression end with ')' ??

sunil0791
got it.
Thanks for the reply Daniel

Regards,
Sunil