title: Thymeleaf table
body: <p>I have problem table when i want set value with for each i.index get error java.lang.NumberFormatException: For input string: &quot;${i.index}&quot;. In Array i need numer so ${i.index} is int. I dont know what i do wrong.</p>
  <pre><code>&lt;div class=&quot;form-group row&quot; th:each=&quot;attribute, i: ${attributeList}&quot;&gt;
          &lt;label class=&quot;col-sm-3 col-form-label&quot; th:text=&quot;${attribute.name}&quot;&gt;&lt;/label&gt;
          &lt;div class=&quot;col-sm-9&quot;&gt;
              &lt;input type=&quot;text&quot; th:field=&quot;*{technicalAttributes[${i.index}].name}&quot; class=&quot;form- 
              control&quot; placeholder=&quot;Nazwa&quot;&gt;
          &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>