title: How do I get my Model inclusive filled fields back from view to controller
body: <p>How do I get my Model inclusive filled fields back from view to controller without loosing the fields.</p>
  
  <p>My model has three fields: </p>
  
  <pre><code>myModel.setId(1);
  myModel.setName("MyName");
  myModel.setStatus("MyStatus");
  </code></pre>
  
  <p>In my first Controller I set <code>myModel</code> in a model:</p>
  
  <pre><code>@RequestMapping(value="/spiel/{spielId}/runde/{rundenNummer}", method=RequestMethod.GET)
  public String index(Model model){
      MyModel myModel = new MyModel(1, "MyName", "MyStatus");
      model.addAttribute("myModel", myModel);
  return "index";
  </code></pre>
  
  <p>I use myModel in the view and want to post it via a form.</p>
  
  <pre><code>&lt;form action="#" th:action="@{/index/update/}"  
                   method="post" th:object="${myModel}"&gt;
  </code></pre>
  
  <p>In my second Controller I want to reuse myModel inclusive the previous filled attributes.</p>
  
  <pre><code>@RequestMapping(value="/index/update}", method=RequestMethod.POST)
  public String update(Model model, @ModelAttribute("myModel") MyModel myModel){
      myModel.getId(); // should be 1
      myModel.getName(); // should be "MyName"
      myModel.getStatus(); // should be "MyStatus"
  return "update";
  </code></pre>
  
  <p>How can I achive this behaviour in the view? Do I need hidden input fields for all attributes of myModel? Or is there an easy way to sent back the same model back?</p>