title: Neither BindingResult nor plain target object for bean name 'id' available as request attribute
body: <p>I keep getting the "Neither BindingResult nor plain target object for bean name 'id' available as request attribute" error when try to add the related user iterating through the loop. </p>
  
  <pre><code> @RequestMapping(value = "/user", method = RequestMethod.GET)
  public String getUser(HttpServletRequest request, HttpServletResponse response, Model model,  @RequestParam("id") String id, @ModelAttribute("userForm") UserForm userForm)
  {
      User user = userService.getUser(id);
      List&lt;User&gt; relateUsers = userService.getRelatedUsers(id);
      userForm.setUser(user);
      userForm.setRelateUsers(relateUsers);
      return userDetailForm;
  
  }
  
  
  
  &lt;div class="trackList" th:if="${userForm.relatedUsers.size() &gt; 0}" th:each="relatedUser : ${userForm.relatedUsers}"  &gt;
  
  &lt;th:form method="POST" th:action="@{/user}"&gt;                              
                &lt;input type="hidden" id="id" th:field="*{id}"/&gt;
                  &lt;div&gt;
                &lt;a class="add"  role="button"&gt;Add&lt;/a&gt;
                          &lt;/div&gt;
  &lt;/th:form&gt;
  
  
  &lt;/div&gt;
  </code></pre>