I have a list of strings - which are the properties names that I am interested in: I want to join the values of these strings, but not using the properties name, but the pro
You can do it by utilizing #messages.listMsg
and #strings.listJoin
Having the model returned from your @Controller:
model.addAttribute("messageKeyList", Lists.newArrayList("name", "address"));
You can join list of translated messages like this:
<div th:text="${#strings.listJoin(#messages.listMsg(messageKeyList), ',')}"></div>
Which should produce what you expect, e.g.:
Some name,Some address
Where name and address are keys in your messages file.