getMessage(...) in SayToAttrProcessor

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

getMessage(...) in SayToAttrProcessor

samsepiol
This post was updated on .
hi Im traying to make this work
http://www.thymeleaf.org/doc/articles/sayhelloagainextendingthymeleafevenmore5minutes.html

all be fine until i try with the getMessage method...
its not working for me..
I tried with
        String message = getMessage(arguments,"date.format",null);

And I have my .properties I tried with getMessageForProcessor() and getMessageForTemplate()...but i get
"??date.format_es_ES??" String and not the traduction of the key


do you have any idea?
Reply | Threaded
Open this post in threaded view
|

Re: getMessage(...) in SayToAttrProcessor

Zemi
Administrator
Hello,

this is probably related to the messages file resolution.

By default it has the name your_template.properties but if you're using Spring is completely different, you will have to configure it as a bean. Please relate of the examples to see how it is configured https://github.com/thymeleaf/thymeleafexamples-stsm

Kind regards,
  Zemi