title: Thymeleaf : How to edit a field?
body: <p>In my class Test I have a list of Versions like this : </p>
  
  <p>Test Class: </p>
  
  <pre><code>  @OneToMany(fetch = FetchType.LAZY, mappedBy = "idTest")
      private List&lt;Versions&gt; version; 
  </code></pre>
  
  <p>In thymeleaf I code this to display the list of version </p>
  
  <pre><code> &lt;tr th:each ="test : ${testList}"&gt;  
     &lt;td th:each="p : ${test.version}" th:text="${p.getVersions().version}" &gt; &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>This work for me.</p>
  
  <p>Now <strong>I would edit it</strong> (Version field), my code :</p>
  
  <pre><code>&lt;form class="form-horizontal" th:object="${update}" th:action="@{/update}" method="post"&gt;
  
  &lt;div class="col-sm-10"&gt;
      &lt;th:block th:each="p : ${version}" &gt;
         &lt;input type="text" class="form-control" th:field="*{p.getVersions().version}"/&gt;
      &lt;/th:block&gt;
  &lt;/div&gt; 
  &lt;/form&gt;
  </code></pre>
  
  <p>It display only the label Version, and it doesn't show the version input 
  Have you any idea ?</p>
  
  <p>Thanks.</p>