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 <[email protected]> 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:[email protected]] > Sent: Sunday, January 08, 2012 4:46 AM > To: [email protected] > 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 <[email protected]> wrote: >> CheckList is similar. I still need it to be table. >> >> Thanks anyway, >> Dennis >> >> -----Original Message----- >> From: Gilberto [mailto:[email protected]] >> Sent: Friday, January 06, 2012 1:33 PM >> To: [email protected] >> 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 <[email protected]> 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 >>> >>> >> >
