title: Display Nested object
body: <p>I use spring boot with thymeleaf, in a page try to display a form and it's nested object.</p>
  
  <p>My object Factories has </p>
  
  <ul>
  <li>id </li>
  <li>name </li>
  <li>List</li>
  </ul>
  
  <p>When I display</p>
  
  <pre><code>&lt;form id="factoriesForm" th:object="${factories}" &gt;
     ...
     ...
     &lt;table id="machinesTable" class="table table-striped table-hover responsive"&gt;
        &lt;thead&gt;
           &lt;tr&gt;
              &lt;th th:text="#{name}"&gt;Name&lt;/th&gt;
              &lt;th th:text="#{description}"&gt;Description&lt;/th&gt;
              &lt;th&gt;&lt;/th&gt;
           &lt;/tr&gt;
        &lt;/thead&gt;
        &lt;tbody&gt;
           &lt;tr th:each="machine, stat : ${machines}"&gt;
              &lt;td&gt; 
                 &lt;input type="hidden" th:id="${'machineId-'+stat.index}"  th:field="*{machines[__${stat.index}__].id}" /&gt;
                 &lt;input type="text" class="form-control" th:id="${'machineName-'+stat.index}" th:placeholder="#{name.placeholder}" placeholder="Name" th:field="*{machines[__${stat.index}__].name}" /&gt;
              &lt;/td&gt;
              &lt;td&gt; &lt;input type="text" class="form-control" th:id="${'machineDescription-'+stat.index}" th:placeholder="#{description.placeholder}" placeholder="Description" th:field="*{machines[__${stat.index}__].description}" /&gt;&lt;/td&gt;
              &lt;td&gt; &lt;i class="fas fa-trash-alt"&gt;&lt;/i&gt;&lt;/td&gt;
           &lt;/tr&gt;
        &lt;/tbody&gt;
     &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My factories has many machines, but none is displayed</p>
  
  <p>Any idea?</p>