You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Paul Spencer <pa...@apache.org> on 2009/02/02 13:05:09 UTC

[TRINIDAD] How to display columns of checkboxes in ?

How can I display checkboxes in columns?

As an example I need to display 2 columns of names. Each name is  
selectable.  Displaying the list in one column or row would force the  
user to scroll around the page to see all of the names.

Paul Spencer

Re: [TRINIDAD] How to display columns of checkboxes in ?

Posted by Andrew Robinson <an...@gmail.com>.
Check the archive, someone just asked this question. You can use the
tr:panelList with a tr:iterator and a tr:selectBooleanCheckbox with
the columns set to 2 on the panel list. It is a bit of work, but
should do what you need.

If you want, create an enhancement JIRA ticket to allow for multiple
column layouts with checkboxes, and perhaps someone would be kind
enough to implement it.

-Andrew

On Mon, Feb 2, 2009 at 5:05 AM, Paul Spencer <pa...@apache.org> wrote:
> How can I display checkboxes in columns?
>
> As an example I need to display 2 columns of names. Each name is selectable.
>  Displaying the list in one column or row would force the user to scroll
> around the page to see all of the names.
>
> Paul Spencer
>

Re: [TRINIDAD] How to display columns of checkboxes in ?

Posted by Andrew Robinson <an...@gmail.com>.
You cannot do that with selectManyCheckbox, please see my email on how to do it

On Mon, Feb 2, 2009 at 9:16 AM, Paul Spencer <pa...@apache.org> wrote:
> Currently I have a list of names in a <tr:selectManyCheckbox
> value="#{listOfnames}".../>.  The list of check boxs is currently displayed
> in one column. I would like to display the check boxes in 2 or three columns
> primarily to maximize the number of checkboxes visible at one time.
>
> _ Name 1     _ Name 2    _ Name 3
> _ Name 4     _ Name 5    _ Name 6
> _ Name 7     _ Name 8    _ Name 9
>
>
> Paul Spencer
>
> On Feb 2, 2009, at 9:24 AM, Omar Elprince wrote:
>
>> I am not sure if I understand what your question? Could you elaborate
>> more?
>>
>> If the columns are in table.
>>
>> If would be help full if you post some code snippets of what you trying to
>> do.
>>
>>
>> On Feb 2, 2009, at 7:05 AM, Paul Spencer wrote:
>>
>>> How can I display checkboxes in columns?
>>>
>>> As an example I need to display 2 columns of names. Each name is
>>> selectable.  Displaying the list in one column or row would force the user
>>> to scroll around the page to see all of the names.
>>>
>>> Paul Spencer
>>
>
>

Re: [TRINIDAD] How to display columns of checkboxes in ?

Posted by Paul Spencer <pa...@apache.org>.
Currently I have a list of names in a <tr:selectManyCheckbox  
value="#{listOfnames}".../>.  The list of check boxs is currently  
displayed in one column. I would like to display the check boxes in 2  
or three columns primarily to maximize the number of checkboxes  
visible at one time.

_ Name 1     _ Name 2    _ Name 3
_ Name 4     _ Name 5    _ Name 6
_ Name 7     _ Name 8    _ Name 9


Paul Spencer

On Feb 2, 2009, at 9:24 AM, Omar Elprince wrote:

> I am not sure if I understand what your question? Could you  
> elaborate more?
>
> If the columns are in table.
>
> If would be help full if you post some code snippets of what you  
> trying to do.
>
>
> On Feb 2, 2009, at 7:05 AM, Paul Spencer wrote:
>
>> How can I display checkboxes in columns?
>>
>> As an example I need to display 2 columns of names. Each name is  
>> selectable.  Displaying the list in one column or row would force  
>> the user to scroll around the page to see all of the names.
>>
>> Paul Spencer
>


Re: [TRINIDAD] How to display columns of checkboxes in ?

Posted by Omar Elprince <ge...@gmail.com>.
I am not sure if I understand what your question? Could you elaborate  
more?

If the columns are in table.

If would be help full if you post some code snippets of what you  
trying to do.


On Feb 2, 2009, at 7:05 AM, Paul Spencer wrote:

> How can I display checkboxes in columns?
>
> As an example I need to display 2 columns of names. Each name is  
> selectable.  Displaying the list in one column or row would force  
> the user to scroll around the page to see all of the names.
>
> Paul Spencer