I have a fieldset to witch I add components dynamically code looks like this:
<fieldset>
<legend style="color:blue;font-weight:bold;">#{msgs.newsletterConstantPersonalization}</legend>
<ui:repeat var="personalizedProp" value="#{newsletterWflBean.constantPersonalizationProperties}">
<comp:embeddedLabel label="#{personalizedProp.name}">
<h:selectBooleanCheckbox value="#{personalizedProp.used}" />
</comp:embeddedLabel>
</ui:repeat>
</fieldset>
However every component appear beneath previews one. I would like to create fix amount of columns eg. 3 and place new components side by side.
So, now it looks like this:
comp1
comp2
comp3
...
compx
What I want for eg. 3 columns:
comp1 comp2 comp3
comp4 comp5 comp6
...
compx compx+1 ...
(where comp is label+checkbox)
How can I achieve that with JSF? I don't want to create a list of lists and duplicate ui:repeat tag. I wan't to keep view separate from business logic. So I would like everything to be done in JSF/JavaScript.
Also with legend tag I assume (http://www.w3schools.com/tags/tag_legend.asp) I should have nice title border around my components but that doesn't work. Why? How to create title border/legend using JSF?
Thanks for help