Мне нужен фрагмент Thymeleaf, который реализует складную панель (начальную загрузку).
Содержимое панели может быть другим или статическим html.
Я пытаюсь реализовать гибкие макеты и загрузчик
https://www.thymeleaf.org/doc/tutorials/3.0/usingthymeleaf.html#flexible-layouts-beyond-mere-fragment-insertion
Я пытался, но все мои попытки заканчивались в исключительной ситуации java.lang.StackOverflowError: null
frag.html
<div th:fragment="ANOTHER">
<div><span>Test</span></div>
<div/>
...
<th:block th:fragment="AUDIT">
<input type="hidden" th:field="*{createDate}"/>
<input type="hidden" th:field="*{lastChangedate}"/>
</th:block>
....
<th:block th:fragment="COLLAPSE(title)">
<div class ="row">
<a href="#" data-toggle="collapse" th:data-target="${'#' + title}" th:text="${title}">Title</a>
<div th:id="${title}" class ="row collapse">
<div class="panel panel-primary">
<div class="panel-body">
<th:block th:replace="~{:: ?????}"/> <<<----------------¿?
</div>
</div>
</div>
</div>
</th:block>
....
<div th:fragment="more" />
<th:block th:fragment="many" />
....
view.html
<div th:replace="~{frag :: COLLAPSE('Label_Audit')}">
<div th:replace="~{frag :: AUDIT}"/>
<div th:replace="~{frag :: ANOTHER}"/>
Help me!
</div>
¿Есть ли у вас решение?