I have some objects in a hashset rather than a list. Can I bind to values in these objects directly using code like ...
where the object.items is a hashset rather than list. when I try to do this I get an error:Code:<c:forEach items="${object.items}" var="item" varStatus="status"> <tr> <td><c:out value="${item.attr1}"/> </td> <td><c:out value="${item.attr2}"/> </td> <td> <form:radiobutton path="items[${status.index}].selected"/> </td> </tr> </c:forEach>
org.springframework.beans.NotReadablePropertyExcep tion: Invalid property 'items[0]' of bean class [au.com.prolancer.hsp.dto.ServiceProfileDTO]: Bean property 'items[0]' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?


Reply With Quote