I’ve got a list and everything works fine when using this approach, the problem is that this list is very long.
What I want to do is to put some html after half or something.
<form:checkboxes element="div" path="user.bags" items="${bags}" itemValue="id" temLabel="name" />
First of all, is there any way to manipulate this list? or do I have to loop through it?
When I loop through it it seems like it is doing something like this. I’m I even on the right track here?
<c:forEach items="${bags}" var="bag" varStatus="status">
<form:checkbox path="user.bags[${status.index}]" value="{bag.id}" name="?"/>
</c:forEach>
Any answer is good!
I would probably pass two lists so you then specify the html. The checkboxes tag just creates the html … to see exactly what it does just view your rendered page.