title: Spring MVC List Values Returned Unchanged
body: <p>I am struggling with getting the changed list values in my JSP to get returned to the MVC controller. The values are displayed fine, but changes do not show up in the ModelAttribute when the form is submitted (any non-list values that are changed DO show up when submitted). Here is an abbreviated version of the relevant code:</p>
  
  <p>JSP:</p>
  
  <pre><code>&lt;c:forEach items="${poForm.poDetail}" varStatus="i"&gt;
  ...
  &lt;!-- Product Description --&gt;
  &lt;td class="leftAlign"  &gt;
    &lt;form:input path="poDetail[${i.index}].description"  /&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>BACKING FORM:</p>
  
  <pre><code>public class POForm {
    private List&lt;PurchaseOrderDetail&gt; poDetail;
  ...
  }
  </code></pre>
  
  <p>PURCHASEORDERDETAIL:</p>
  
  <pre><code>public class PurchaseOrderDetail implements Comparable&lt;PurchaseOrderDetail&gt;{
      private String partNumber; // alpha-numeric part number (vendor's)
  private String description; // Product name/description
  ... remaining properties are non-complex
  }
  </code></pre>
  
  <p>CONTROLLER:</p>
  
  <pre><code>@RequestMapping(value="/savePO",method=RequestMethod.POST)
  public ModelAndView savePO(@ModelAttribute("poForm") POForm poForm, final       
       HttpServletRequest request) {
  .... "examine the poForm here and items of poDetail are unchanged"
  }
  </code></pre>
  
  <p>any suggestions to try??</p>