java - Spring mvc checkboxes -


i've got list , works fine when using approach, problem list long. want put html after half or something.

<form:checkboxes element="div" path="user.bags" items="${bags}" itemvalue="id" temlabel="name" /> 

first of all, there way manipulate list? or have loop through it?

when loop through it seems doing this. i'm on 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 good!

i pass 2 lists specify html. checkboxes tag creates html ... see view rendered page.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -