JSF 2 ui:repeat: group every n items inside a div
问题 Given a collection that I want to arrange on a page like this: <!-- Group 0 --> <div style="float:left;"> <div><!-- Item 0 --></div> <div><!-- Item 1 --></div> <!-- ... --> <div><! -- Item n - 1 --></div> </div> <!-- Group 1 --> <div style="float:left;"> <div><!-- Item n --></div> <div><!-- Item n + 1 --></div> <!-- ... --> <div><! -- Item 2n - 1 --></div> </div> <!-- ... --> <!-- Group g --> <div><!-- Item gn --></div> <div><!-- Item gn + 1 --></div> <!-- ... --> <div><! -- Item (g + 1)n - 1