title: spring <form:checkboxes> tag and css class
body: <p>I have issue with:</p>
  
  <pre><code>&lt;form:checkboxes path="roles" cssClass="checkbox" items="${roleSelections}" /&gt;
  </code></pre>
  
  <p>If previous line is used in jsp, then generated html looks like:</p>
  
  <pre><code>&lt;span&gt;&lt;input id="roles1" name="roles" class="checkbox" type="checkbox" value="ROLE_NEWUSER"/&gt;&lt;label for="roles1"&gt;ROLE_NEWUSER&lt;/label&gt;&lt;/span&gt;
  &lt;span&gt;&lt;input id="roles2" name="roles" class="checkbox" type="checkbox" value="ROLE_USER" checked="checked"/&gt;&lt;label for="roles2"&gt;ROLE_USER&lt;/label&gt;&lt;/span&gt;
  &lt;span&gt;&lt;input id="roles3" name="roles" class="checkbox" type="checkbox" value="ROLE_EDITOR"/&gt;&lt;label for="roles3"&gt;ROLE_EDITOR&lt;/label&gt;&lt;/span&gt;
  &lt;span&gt;&lt;input id="roles4" name="roles" class="checkbox" type="checkbox" value="ROLE_ADMINISTRATOR"/&gt;&lt;label for="roles4"&gt;ROLE_ADMINISTRATOR&lt;/label&gt;&lt;/span&gt;
  </code></pre>
  
  <p>Please notice that css class is added to input tag. Instead css class is added to input tag I need this class to be added to span tag. Is there any solution to my problem, other then using <code>&lt; c:forEach &gt;</code> tag</p>
  
  <p>Thanks in advance. Sorry if question is duplicate. If so, please point me to original question.</p>
  
  <p>Cheers,
  Tihomir</p>
  
  <p>P.S.:</p>
  
  <p>I'm using spring 3.1.0.RELEASE.</p>