Hi everyone,
Sorry to jack your thread...but thought this might help others and didn't want to create another thread. It might be a simple problem but I can't seem to find an answer.
Well..
I got my multiple checkbox to work using an array like so
Code:
<display:column title="Check Out">
<spring:bind path="library.checkOutBox[${counterOut}]">
<input type="hidden" name="_<c:out value="${status.expression}"/>">
<input type="checkbox" name="<c:out value="${status.expression}"/>" value="<c:out value="${bookList.bookid}"/>"
<c:if test="${status.value == bookList.bookid}">checked</c:if>
<c:if test="${bookList.copiesAvail==0}" var="noneAvail">disabled</c:if>/>
<c:set var="counterOut" value="${counterOut+1}"/>
</spring:bind>
</display:column>
It's pretty much like the one at http://opensource.atlassian.com/conf...ith+Spring+MVC
but slightly modified.
The problem that i'm having is that in my Library class, i have to specify the size of the array like:
Code:
private String[] checkOutBox = new String[60]
This is all fine and dandy if my Library was static but my Library will be adding and deleting books so is there a way to make it dynamic?
Thanks