How to put multiple rows of checkboxes of the same property?

It could be the simple question, but I can't figure it out. I used <h:selectmanyCheckbox> It has layout="pageDirection/lineDirection" values. But now I have a requirement to display 6 checkboxes of US states 2 states x 3 rows. If I had 1 vertical row of states I would put this:

<h:selectManyCheckbox id="states" value="#{myAction.states}"

required="true" styleClass="uiInputNoBorder" layout="pageDirection">

<f:selectItems value="#{myAction.stateList}" />

<f:attribute name="fieldLabel" value="State"/>

</h:selectManyCheckbox>

So can some one help me how do implement it?

Thanks,

Gennady

[660 byte] By [Gene123a] at [2007-11-27 10:38:41]
# 1

This requires a special renderer, which so far does not exist... Best you can do is create an issue (a feature-request) in the JSF-project... or write your own component or renderer...

hth

Alexander

Alexander_Jessea at 2007-7-28 18:56:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

The Tomahawk component library has support for this. Specifically, look at the Tomahawk version of selectManyCheckbox and the checkbox component.

RaymondDeCampoa at 2007-7-28 18:56:02 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...