tags:

views:

159

answers:

3

I have a JSF page. At one point, I have a <h:selectManyCheckbox> that is displaying a number of items. The tag provides 2 attributes you can set to define whether the contents should be displayed horizontally or vertically. However, with more than a few items both choices look bad. Go with horizontal, and everything ends up bunched up. Go with vertical, and you can make your page unnecessarily long. Is there any way to get the best of both worlds? Specify that there should be x number of columns, for example? Say I have 20 items and I'd like 4 columns. If that number grew to 100, I'd still want only 4 columns. The list would then grow vertically.

Is this possible?

+1  A: 

A similar post check this out

link

daedlus
A: 

There is no such tag rich:selectManyCheckbox only h:selectManyCheckbox

Max Katz
Yes, you are correct. Edited.
Shadowman
+1  A: 

Use Tomahawk's t:selectManyCheckbox instead. It has a layoutWidth attribute exactly for this purpose.

BalusC