mercredi 21 août 2019

How to arrange form:checkbox list in tabular format in Spring MVC?

I have a list of products (40 numbers) and I need to arrange those all in checkboxes in a tabular format along with other form elements

I tried with regular syntax which takes list of String and show checkboxes. But those are showing the checkboxes in horizontal lines one after another. This is ugly representation

<td><form:label path="productlist">Products</form:label></td>
<td><form:checkboxes items="${productStringList}"                               path="productlist" /></td> 

Actual result is list of checkboxes in horizontal line. My expected result is to get the checkboxes in a tabular format, say 4 products in every row




Aucun commentaire:

Enregistrer un commentaire