Skip to content

Commit

Permalink
SpEL can get confused, changed to method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
mstrankowski committed Sep 19, 2023
1 parent 1a82150 commit e718d57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/base/src/main/resources/templates/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ <h2 th:text="${title}"></h2>
<option value="text/plain">txt</option>
</select></td></tr>

<th:block th:each="i: ${#numbers.sequence(0, T(java.lang.Math).min(18, transformOptions.size) - 1)}">
<th:block th:each="i: ${#numbers.sequence(0, T(java.lang.Math).min(18, transformOptions.size()) - 1)}">
<tr><td><select th:name="${'name'+i}">
<option th:each="transformOption, iStat: ${transformOptions}"
th:value="${transformOption}" th:text="${transformOption}"
th:selected="${iStat.index eq i}"/>
</select></td><td><input type="text" th:name="${'value'+i}" /></td></tr>
</th:block>

<th:block th:each="i: ${#numbers.sequence(T(java.lang.Math).min(18, transformOptions.size), T(java.lang.Math).min(18, transformOptions.size) + 2)}">
<th:block th:each="i: ${#numbers.sequence(T(java.lang.Math).min(18, transformOptions.size()), T(java.lang.Math).min(18, transformOptions.size()) + 2)}">
<tr><td><input type="text" th:name="${'name'+i}" value="" /></td>
<td><input type="text" th:name="${'value'+i}" value="" /></td></tr>
</th:block>
Expand Down

0 comments on commit e718d57

Please sign in to comment.