You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Dave Brondsema (JIRA)" <de...@myfaces.apache.org> on 2005/12/13 16:53:45 UTC

[jira] Created: (MYFACES-943) t:selectManyCheckbox layout bounds

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


[jira] Commented: (MYFACES-943) t:selectManyCheckbox layout bounds

Posted by "Dave Brondsema (JIRA)" <de...@myfaces.apache.org>.
    [ 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


[jira] Closed: (MYFACES-943) t:selectManyCheckbox layout bounds

Posted by "Simon Kitching (JIRA)" <de...@myfaces.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-943?page=all ]
     
Simon Kitching closed MYFACES-943:
----------------------------------

    Resolution: Won't Fix

This might make a nice wiki entry...cool effect!

> 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