title: Spring MVC Thymeleaf: th:field gives error at testing
body: <p>I use Spring MVC with Thymeleaf. I created a Thymeleaf page, and it works correctly (in my browser). Now I try to test it with the <a href="https://github.com/thymeleaf/thymeleaf-testing" rel="nofollow">Thymeleaf test library</a>, but it gives a error at the <code>SpringInputGeneralFieldAttrProcessor</code>, it happends at the first input field he sees. The problem is with the <code>th:field="*{username}"</code>, (the test continues when I remove all the <code>th:fields</code>). </p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thymeleafs test file: </p>
  
  <pre><code>%CONTEXT
  user = new [...].User()
  
  # ------------------------------------------
  %INPUT 
  &lt;span layout:include="page :: content" th:remove="tag"&gt;&lt;/span&gt;
  
  %INPUT[page] (file:src/main/webapp/WEB-INF/spring/views/CreateNewUser.html)
  
  # ------------------------------------------
  %OUTPUT
  &lt;Some HTML /&gt;
  </code></pre>
  
  <p>Part of the form: </p>
  
  <pre><code>&lt;form action="#" 
      th:action="@{/spring/CreateNewUser}"
      th:object="${user}" method="post"&gt;
  
  &lt;input type="text" th:field="*{username}" /&gt;
  
  &lt;button type="submit" id="submit"&gt;Save&lt;/button&gt;     
  </code></pre>
  
  <p>The error is: </p>
  
  <pre><code>  |  ERROR [TemplateEngine] [THYMELEAF][main] Exception processing template "C:\[..]\test-classes\thymeleaftest\CreateNewUser.thtest-001": Error during execution of processor 'org.thymeleaf.spring4.processor.attr.SpringInputGeneralFieldAttrProcessor' (page:60)
  [2014-07-21 09:51:21][RTJ8C0][main] [test:end][C:\[...]\target\test-classes\thymeleaftest\CreateNewUser.thtest-001][529208814][KO] Test FAILED: Error during execution of processor 'org.thymeleaf.spring4.processor.attr.SpringInputGeneralFieldAttrProcessor' (page:60) Time: 529208814ns (529ms).
  org.thymeleaf.exceptions.TemplateProcessingException: Error during execution of processor 'org.thymeleaf.spring4.processor.attr.SpringInputGeneralFieldAttrProcessor' (page:60)
  </code></pre>