I am trying to get Apache Tiles ' put-list-attribute to work with Thymeleaf .
Here is what I tried:
From the Tiles configuration:
<put-list-attribute name="jsFilesList"> <add-attribute value="/js/libs/jquery-1.8.1.js"/> <add-attribute value="/js/libs/jquery-ui-1.9.0.custom.js"/> <add-attribute value="/js/libs/bootstrap.js"/> </put-list-attribute>
From the team template:
<script th:each="jsFile : ${jsFilesList}" th:src="@{${jsFile}}" type="text/javascript" ></script>
Nothing is displayed ... It seems that the list is empty in terms of the timeline template ...
Can anybody help?
source share