Hi everyone,
I have a list of checkboxes like this:
<g:each in="${mylist}" var = "item" >
<tr>
<td colspan="2"><g:checkBox value="${dimension.id}" name="${item.id}"/> - ${item.name}</td>
</tr>
</g:each>
I have to alter it so I get 2 columns in each row (2 checkboxes per row)
<g:each in="${mylist}" var = "item" >
<td> checkbox with item </td>
<td> checkbox with next item</td>
</g:each>
I wouldn't want to write a tag for this, and the scriptlet option does not look nice.
Is there any grailsy solution?
Thanks in advance