I've faced an issue related to the thymeleaf iteration status:
Code: Select all
<span th:each="processOrderingCost,iteratorStatus : ${crawling_processOrderingCosts}" th:id="${'processOrderingCost' + iteratorStatus.index}" th:text="${processOrderingCost}" th:style="${!iteratorStatus.first} ? 'display:none'">0</span>
This code runs well when I put it in the templates folder (WEB-INF\templates).
But when this code runs as the email template (under WEB-INF\classes\emailTemplates) the iteratorStatus does not work. The loop still run but the iteratorStatus seems to be not exists as the template can't write the id and the style attribute for the span tag.
Does any one know about this issue?
Thanks in advance
