Announcement Announcement Module
Collapse
No announcement yet.
binding collections Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • binding collections

    I am trying to figure out if I can bind collections into a table. I found some info online saying something like this would work:

    Code:
    				                                <c&#58;forEach var="addresses" items="$&#123;status.value&#125;" varStatus="loopStatus">
    <spring&#58;bind path="command.addresses&#91;$&#123;loopStatus.index&#125;&#93;.startRange">
        <input type="text" name="<c&#58;out value="$&#123;status.expression&#125;"/>" value="<c&#58;out value="$&#123;status.value&#125;"/>">
    </spring&#58;bind>
    But it doesn't:

    org.springframework.beans.FatalBeanException: No property [addresses[0]] in class [addresses]

    This makes sense to me since I imagine it's just turning things into simple set commands.

    So is this possible? My data type here is actually a Set (hibernate). I imaging if it returned a native array it would be fine. But I really wanted to just use a collection.

    Possible at all?

    rick
Working...
X