I'm trying to bind one of my model objects to the fields of a form, using Spring-MVC. Everything works fine, except that one of the attributes of the model object is an unordered collection. Doing something like
<c:forEach items="${m.items}" var="i" varStatus="itemsRow">
<form:input path="items[${itemsRow.index}]"/>
</c:forEach>
<form:errors path="items" />
would work fine for a List-type property, but for a Set throws an error when, upon submit, it tries to bind input field content to object attributes.
Is there something in Spring that works out of the box with Sets?