vertx thymeleaf template rendering with using messages / i18n

76 views
Skip to first unread message

chris ulrich

unread,
Aug 13, 2018, 4:54:54 AM8/13/18
to vert.x
Hi, 
can anyone hint me to a working example of using thymeleaf template rendering with vertx leveraging messages/i18n ? I tried a very basic setup putting properties file with messages in the same directory as the html template i redner. The rendering and everything works well, messages how ever are not resolved in the outputed html. Template and message file are named the same and put together as described in the thymeleaf docs for the standard message resolver which is leveraged by default by vertx.

Any Hint would help. 
I'm using gradle as build tool, but i guess this is not related.

Cheers Chris

chris ulrich

unread,
Aug 20, 2018, 7:19:23 AM8/20/18
to vert.x
Well, i figured out that ThymeleafTemplateEngineImpl leverages ResourceTemplateResover which itself extends StringTemplateResolver. The later does not try to resolve i18n properties-files at all since it uses StringTemplateResource.getBaseName() which does always return null when trying to resolve template related properties-files.
Reply all
Reply to author
Forward
0 new messages