Concatenate messages

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

Concatenate messages

niels
HI,

I'm want to replace a text with multiple message-fragments. I end with with following
<title th:text="${#strings.concat('__#{App.Title}__',' - ','__#{user.list}__')}">SpringMVC-Sample -
    List of all users</title>

I wonder if there is any more elegant solution then
"${#strings.concat('__#{App.Title}__',' - ','__#{user.list}__')}"
My first attemp was
th:text="#{App.Title} #{user.list}" 
Niels
Reply | Threaded
Open this post in threaded view
|

Re: Concatenate messages

Zemi
Administrator
You almost have it:

    th:text="#{App.Title} + #{user.list}"
Reply | Threaded
Open this post in threaded view
|

Re: Concatenate messages

niels
Of course, thanks for the answer.