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