You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@click.apache.org by Gilberto <gi...@gmail.com> on 2012/01/06 19:32:37 UTC

Re: Table with checkbox in the head

Have you seen the CheckListDemo[1]. It looks like the CheckList[2]
control is what you need or you could implement something similar to
table control.

Regards,

Gilberto

[1] http://click.avoka.com/click-examples/control/check-list-demo.htm
[2] http://click.apache.org/docs/extras-api/org/apache/click/extras/control/CheckList.html

On Thu, Jan 5, 2012 at 11:46 AM, Dennis Lee <de...@globalhis.com> wrote:
> Hello,
>
> I’d like to have table like this.   ^ is a checkbox.
>
> ^   ID   First Name   Last Name
>
> ---------------------------------
>
> ^   1     John               Doe
>
> ^  2      Bob                 Smith
>
> 1. How can I add  the checkbox in the head.
>
> 2. The checkbox in the body.  How can add userId as value?
>
> 3. The checkbox and second column is also userId  - same checkbox value.  Is
> it possible to add same field value?
>
> 4. I’d like to use header checkbox to select or deselect all. I can use
> jquey to do this but is there better way?
>
> Thanks,
>
> Dennis
>
>

Re: Table with checkbox in the head

Posted by Gilberto <gi...@gmail.com>.
Another good discussion on the subject[1].

Hth,

Gilberto

[1] http://click.1134972.n2.nabble.com/useful-table-page-radio-button-td1136202.html#a1136205

On Fri, Jan 6, 2012 at 3:32 PM, Gilberto <gi...@gmail.com> wrote:
> Have you seen the CheckListDemo[1]. It looks like the CheckList[2]
> control is what you need or you could implement something similar to
> table control.
>
> Regards,
>
> Gilberto
>
> [1] http://click.avoka.com/click-examples/control/check-list-demo.htm
> [2] http://click.apache.org/docs/extras-api/org/apache/click/extras/control/CheckList.html
>
> On Thu, Jan 5, 2012 at 11:46 AM, Dennis Lee <de...@globalhis.com> wrote:
>> Hello,
>>
>> I’d like to have table like this.   ^ is a checkbox.
>>
>> ^   ID   First Name   Last Name
>>
>> ---------------------------------
>>
>> ^   1     John               Doe
>>
>> ^  2      Bob                 Smith
>>
>> 1. How can I add  the checkbox in the head.
>>
>> 2. The checkbox in the body.  How can add userId as value?
>>
>> 3. The checkbox and second column is also userId  - same checkbox value.  Is
>> it possible to add same field value?
>>
>> 4. I’d like to use header checkbox to select or deselect all. I can use
>> jquey to do this but is there better way?
>>
>> Thanks,
>>
>> Dennis
>>
>>

Re: Table with checkbox in the head

Posted by Malcolm Edgar <ma...@gmail.com>.
This sounds like a useful addition to FormTable, as this is probably a
common requirement.

regards Malcolm Edgar

On Mon, Jan 9, 2012 at 7:16 AM, Dennis Lee <de...@globalhis.com> wrote:
> Thanks Malcolm,
>
> This seems to be the best option for me for now.  I would add CheckColumn
> (extends Column and add checkbox with to table with given id/name with
> value) and add it to CheckTable (extends FormTable with overwriting
> renderHeader to add checkbox if the columns is CheckColumn).
>
> Dennis
>
> -----Original Message-----
> From: Malcolm Edgar [mailto:malcolm.edgar@gmail.com]
> Sent: Sunday, January 08, 2012 4:46 AM
> To: user@click.apache.org
> Subject: Re: Table with checkbox in the head
>
> I would recommend looking at FormTable and extending this:
>
> http://click.avoka.com/click-examples/table/form-table.htm
>
> regards Malcolm Edgar
>
> On Sat, Jan 7, 2012 at 2:43 PM, Dennis Lee <de...@globalhis.com> wrote:
>> CheckList is similar.  I still need it to be table.
>>
>> Thanks anyway,
>> Dennis
>>
>> -----Original Message-----
>> From: Gilberto [mailto:gilbertoca@gmail.com]
>> Sent: Friday, January 06, 2012 1:33 PM
>> To: user@click.apache.org
>> Subject: Re: Table with checkbox in the head
>>
>> Have you seen the CheckListDemo[1]. It looks like the CheckList[2]
>> control is what you need or you could implement something similar to
>> table control.
>>
>> Regards,
>>
>> Gilberto
>>
>> [1] http://click.avoka.com/click-examples/control/check-list-demo.htm
>> [2]
>> http://click.apache.org/docs/extras-api/org/apache/click/extras/contro
>> l/CheckList.html
>>
>> On Thu, Jan 5, 2012 at 11:46 AM, Dennis Lee <de...@globalhis.com> wrote:
>>> Hello,
>>>
>>> I’d like to have table like this.   ^ is a checkbox.
>>>
>>> ^   ID   First Name   Last Name
>>>
>>> ---------------------------------
>>>
>>> ^   1     John               Doe
>>>
>>> ^  2      Bob                 Smith
>>>
>>> 1. How can I add  the checkbox in the head.
>>>
>>> 2. The checkbox in the body.  How can add userId as value?
>>>
>>> 3. The checkbox and second column is also userId  - same checkbox
>>> value.  Is it possible to add same field value?
>>>
>>> 4. I’d like to use header checkbox to select or deselect all. I can
>>> use jquey to do this but is there better way?
>>>
>>> Thanks,
>>>
>>> Dennis
>>>
>>>
>>
>

RE: Table with checkbox in the head

Posted by Dennis Lee <de...@globalhis.com>.
Thanks Malcolm,

This seems to be the best option for me for now.  I would add CheckColumn
(extends Column and add checkbox with to table with given id/name with
value) and add it to CheckTable (extends FormTable with overwriting
renderHeader to add checkbox if the columns is CheckColumn).

Dennis

-----Original Message-----
From: Malcolm Edgar [mailto:malcolm.edgar@gmail.com] 
Sent: Sunday, January 08, 2012 4:46 AM
To: user@click.apache.org
Subject: Re: Table with checkbox in the head

I would recommend looking at FormTable and extending this:

http://click.avoka.com/click-examples/table/form-table.htm

regards Malcolm Edgar

On Sat, Jan 7, 2012 at 2:43 PM, Dennis Lee <de...@globalhis.com> wrote:
> CheckList is similar.  I still need it to be table.
>
> Thanks anyway,
> Dennis
>
> -----Original Message-----
> From: Gilberto [mailto:gilbertoca@gmail.com]
> Sent: Friday, January 06, 2012 1:33 PM
> To: user@click.apache.org
> Subject: Re: Table with checkbox in the head
>
> Have you seen the CheckListDemo[1]. It looks like the CheckList[2] 
> control is what you need or you could implement something similar to 
> table control.
>
> Regards,
>
> Gilberto
>
> [1] http://click.avoka.com/click-examples/control/check-list-demo.htm
> [2] 
> http://click.apache.org/docs/extras-api/org/apache/click/extras/contro
> l/CheckList.html
>
> On Thu, Jan 5, 2012 at 11:46 AM, Dennis Lee <de...@globalhis.com> wrote:
>> Hello,
>>
>> I’d like to have table like this.   ^ is a checkbox.
>>
>> ^   ID   First Name   Last Name
>>
>> ---------------------------------
>>
>> ^   1     John               Doe
>>
>> ^  2      Bob                 Smith
>>
>> 1. How can I add  the checkbox in the head.
>>
>> 2. The checkbox in the body.  How can add userId as value?
>>
>> 3. The checkbox and second column is also userId  - same checkbox 
>> value.  Is it possible to add same field value?
>>
>> 4. I’d like to use header checkbox to select or deselect all. I can 
>> use jquey to do this but is there better way?
>>
>> Thanks,
>>
>> Dennis
>>
>>
>


Re: Table with checkbox in the head

Posted by Malcolm Edgar <ma...@gmail.com>.
I would recommend looking at FormTable and extending this:

http://click.avoka.com/click-examples/table/form-table.htm

regards Malcolm Edgar

On Sat, Jan 7, 2012 at 2:43 PM, Dennis Lee <de...@globalhis.com> wrote:
> CheckList is similar.  I still need it to be table.
>
> Thanks anyway,
> Dennis
>
> -----Original Message-----
> From: Gilberto [mailto:gilbertoca@gmail.com]
> Sent: Friday, January 06, 2012 1:33 PM
> To: user@click.apache.org
> Subject: Re: Table with checkbox in the head
>
> Have you seen the CheckListDemo[1]. It looks like the CheckList[2]
> control is what you need or you could implement something similar to
> table control.
>
> Regards,
>
> Gilberto
>
> [1] http://click.avoka.com/click-examples/control/check-list-demo.htm
> [2] http://click.apache.org/docs/extras-api/org/apache/click/extras/control/CheckList.html
>
> On Thu, Jan 5, 2012 at 11:46 AM, Dennis Lee <de...@globalhis.com> wrote:
>> Hello,
>>
>> I’d like to have table like this.   ^ is a checkbox.
>>
>> ^   ID   First Name   Last Name
>>
>> ---------------------------------
>>
>> ^   1     John               Doe
>>
>> ^  2      Bob                 Smith
>>
>> 1. How can I add  the checkbox in the head.
>>
>> 2. The checkbox in the body.  How can add userId as value?
>>
>> 3. The checkbox and second column is also userId  - same checkbox value.  Is
>> it possible to add same field value?
>>
>> 4. I’d like to use header checkbox to select or deselect all. I can use
>> jquey to do this but is there better way?
>>
>> Thanks,
>>
>> Dennis
>>
>>
>

RE: Table with checkbox in the head

Posted by Dennis Lee <de...@globalhis.com>.
CheckList is similar.  I still need it to be table.   

Thanks anyway,
Dennis

-----Original Message-----
From: Gilberto [mailto:gilbertoca@gmail.com] 
Sent: Friday, January 06, 2012 1:33 PM
To: user@click.apache.org
Subject: Re: Table with checkbox in the head

Have you seen the CheckListDemo[1]. It looks like the CheckList[2]
control is what you need or you could implement something similar to
table control.

Regards,

Gilberto

[1] http://click.avoka.com/click-examples/control/check-list-demo.htm
[2] http://click.apache.org/docs/extras-api/org/apache/click/extras/control/CheckList.html

On Thu, Jan 5, 2012 at 11:46 AM, Dennis Lee <de...@globalhis.com> wrote:
> Hello,
>
> I’d like to have table like this.   ^ is a checkbox.
>
> ^   ID   First Name   Last Name
>
> ---------------------------------
>
> ^   1     John               Doe
>
> ^  2      Bob                 Smith
>
> 1. How can I add  the checkbox in the head.
>
> 2. The checkbox in the body.  How can add userId as value?
>
> 3. The checkbox and second column is also userId  - same checkbox value.  Is
> it possible to add same field value?
>
> 4. I’d like to use header checkbox to select or deselect all. I can use
> jquey to do this but is there better way?
>
> Thanks,
>
> Dennis
>
>