[ 
http://issues.apache.org/jira/browse/MYFACES-943?page=comments#action_12360323 
] 

Dave Brondsema commented on MYFACES-943:
----------------------------------------

Nevermind.  This can be solved using a backing bean method.

<t:selectManyCheckbox value="#{formbean.model.fooAsArray}" 
layout="lineDirection" layoutWidth="#{formbean.fooNumRows}">
     <f:selectItems value="#{formbean.fooChoices}" />
</t:selectManyCheckbox>


public int getFooNumRows() {
  float columns = 3.0f;
  return (int) Math.ceil((float)getFooChoices().size() / columns);
 }



> t:selectManyCheckbox layout bounds
> ----------------------------------
>
>          Key: MYFACES-943
>          URL: http://issues.apache.org/jira/browse/MYFACES-943
>      Project: MyFaces
>         Type: Improvement
>   Components: Tomahawk
>     Reporter: Dave Brondsema
>     Priority: Minor

>
> There currently is no way to use t:selectManyCheckbox to do the following
> layout=lineDirection and someNewAttrForLayoutBounds=3
>  [01] [06] [10]
>  [02] [07] [11]
>  [03] [08] [12]
>  [04] [09] [13]
>  [05]
>  (see http://wiki.apache.org/myfaces/HtmlSelectManyCheckbox for current 
> possibilities) 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to