Announcement Announcement Module
Collapse
No announcement yet.
bind multiple values onto a collection of objects Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • bind multiple values onto a collection of objects

    There is discussion of this same problem that I have in: http://opensource.atlassian.com/proj...ator=printable

    There is provided a example in JSP page:

    Code:
    <c&#58;forEach items="$&#123;person.addresses&#125;" var="address" varStatus="loopStatus"> 
    
    <spring&#58;bind path="person.addresses&#91;$&#123;loopStatus.index&#125;&#93;.street"> 
    Street&#58; <input type="text" name="<%= status.getExpression&#40;&#41; %>" value="<%= status.getDisplayValue&#40;&#41; %>"> 
    </spring&#58;bind> 
    <p> 
    
    <spring&#58;bind path="person.addresses&#91;$&#123;loopStatus.index&#125;&#93;.zip"> 
    Zip&#58; <input type="text" name="<%= status.getExpression&#40;&#41; %>" value="<%= status.getValue&#40;&#41; %>"> 
    </spring&#58;bind> 
    <p> 
    
    </c&#58;forEach>
    My problem is that I don't know how to read values in controller from this form.

    If somebody has implemented similar, could somebody provide an example?

    Thanks in advance.
Working...
X