How is the order of execution

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

How is the order of execution

niels
Hi
struggling with the order of execution. I read my url from a message-source. And have 3 versions
@{#{url.user.list}}
@{__#{url.user.list}__}
@{#{url.user.list(1)}}

The first one doesn't work I get an Url with '#{url.user.list}', which is nonsense. The second one works obviously, but I dislike to have to much __. Surprisingly the third solution works well to. The '1' has no influence because there is no placeholder in the message.

I found the behavior inconsistent. Can anyone explain it?
Reply | Threaded
Open this post in threaded view
|

Re: How is the order of execution

danielfernandez
Administrator
This:
@{#{url.user.list}}

Should work. It might be a bug. You can add a ticket at https://github.com/thymeleaf/thymeleaf/issues in order to track this.

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

Re: How is the order of execution

niels
Reply | Threaded
Open this post in threaded view
|

Re: How is the order of execution

sunil0791
Try using something like
@{''+#{url.user.list}}
or
@{'/'+#{url.user.list}}
till the issue gets fixed.
Reply | Threaded
Open this post in threaded view
|

Re: How is the order of execution

danielfernandez
Administrator
Fixed by https://github.com/thymeleaf/thymeleaf/pull/146. Fix version: 2.0.17.