Him
I have a problem populating the data of a table in my jsp into a Set collection. I hav a list of entity objects. Each object has a Set of child objects (Hibernate). My question is, how can I bind a table of these entities?
I have tried to do it defining varStatus and accessing through index element, but when it tries to populate child object (set collection) an error appears warning that it is not possible to access to a set element [0].
I think the problem is due to the fact I defined a java.util.Set instead of List, but must of my hibernate hbm's have Set Collections.Code:<c:forEach var="listaA" items="${resultsForm.resultList}" varStatus="loopA"> <c:forEach var="item" items="${listaA.cartel}" varStatus="loopCartel"> <form:checkbox path="resultList[${loopA.index}].cartel[${loopCartel.index}].selected" value="true" /> </c:forEach> </c:forEach>
Could anybody help me?
Thanks. Regards. JB.


Reply With Quote
