Using a selectManyCheckbox or selectOneRadio, you have limited control over the layout. You can only specify the items to be rendered in 1 row or in 1 column. A lot of times you want to specifiy in how many columns you want the items to be rendered.

I extended the x:selectManyCheckbox and x:selectOneRadio component by adding a columns attribute. This specifies how many columns are being used to render the selectItem objects inside it. It works together with the layout attribute. F.e. if layout is set to pageDirection and columns is set to 2, the items will be rendered in 2 columns starting at the first column from top to bottom and then at the second column from top to bottom. If layout is set to lineDirection and columns is set to 2, the items will be rendered in 2 columns starting at the first row from left to right and then the next row etc...

All components, tags and renderers are subclassed from the myfaces extensions ones and can be easily integrated.Because I think it can be of value to other people it might be usefull to integrate it in myfaces, but I don't know how to do this. Do I create a JIRA issue for this?

A jarfile can be downloaded from http://www.ivpv.ugent.be/~jan/ivpvMyfacesExtensions.jar

Greetings
Jan

Reply via email to