Return to Snippet

Revision: 4903
at January 28, 2008 11:44 by taltmann


Updated Code
<c:forEach items="${grid.blocks}" varStatus="gridRow">
   <spring:bind path="grid.blocks[${gridRow.index}].id"> 
      <c:out value="${status.value}"/> 
      <input type="hidden" 
             name="<c:out value="${status.expression}"/>" 
             id="<c:out value="${status.expression}"/>" 
             value="<c:out value="${status.value}"/>" /> 
   </spring:bind> 
   <spring:bind path="grid.blocks[${gridRow.index}].description"> 
      <c:out value="${status.value}"/> 
      <input type="hidden" 
             name="<c:out value="${status.expression}"/>" 
             id="<c:out value="${status.expression}"/>" 
             value="<c:out value="${status.value}"/>" /> 
   </spring:bind> 
</c:forEach>

Revision: 4902
at January 28, 2008 11:40 by taltmann


Initial Code
<c:forEach items="${grid.blocks}" varStatus="gridRow"> <spring:bind path="grid.blocks[${gridRow.index}].id"> <c:out value="${status.value}"/> <input type="hidden" name="<c:out value="${status.expression}"/>" id="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" /> </spring:bind> <spring:bind path="grid.blocks[${gridRow.index}].description"> <c:out value="${status.value}"/> <input type="hidden" name="<c:out value="${status.expression}"/>" id="<c:out value="${status.expression}"/>" value="<c:out value="${status.value}"/>" /> </spring:bind> </c:forEach>

Initial URL
http://mattfleming.com/node/134

Initial Description

                                

Initial Title
Dynamic list binding in Spring MVC | mattfleming.com

Initial Tags

                                

Initial Language
Java