You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sandeepraj singh <sa...@atosorigin.com> on 2009/07/31 09:43:18 UTC
Have a Master Checkbox For T5 Grid Component
Hi Guys,
I wanted to have a master CheckBox while using the Grid Component. That
CheckBox would be present at the Header Row of Grid Components, and allow to
check the CheckBoxes below to be checked or unchecked.
Is there any way else to do it except for Copying the entire Grid Component
Source Code to MYOWNGRID and then making changes to GridColoumn Component
inside Grid Source Code that would be copied.
Any Pointers would be of great help
Thanks
Sandy
--
View this message in context: http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24752416.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Have a Master Checkbox For T5 Grid Component
Posted by "Robin K." <ro...@atosorigin.com>.
Hi Sandeep,
You may try to use the <p:myAttributeHeader> tag to customize the display of
your grid header cell.
Here is a small quote for the official documentation:
"The header for a column may be overridden in the same way, using a
parameter name of propertyheader . The parameter block will provide the
content inside the <th> element. The provided block is responsible for
providing any links or icons related to sorting."
http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html
Regards,
Robin K.
-- Atos Worldline
sandeepraj singh wrote:
>
> Hi Guys,
> I wanted to have a master CheckBox while using the Grid Component. That
> CheckBox would be present at the Header Row of Grid Components, and allow
> to check the CheckBoxes below to be checked or unchecked.
> Is there any way else to do it except for Copying the entire Grid
> Component Source Code to MYOWNGRID and then making changes to GridColoumn
> Component inside Grid Source Code that would be copied.
>
> Any Pointers would be of great help
>
> Thanks
> Sandy
>
--
View this message in context: http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24752886.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Have a Master Checkbox For T5 Grid Component
Posted by Mario Udina <m....@gmail.com>.
Hello!
I just found out the same issue, however it happens in ie7, in firefox it
works well.
I am not good in javascript but i might have a look into that because I
really need this functionality.
regards,
mario
On Thu, Nov 19, 2009 at 12:18 PM, sandeepraj singh <
sandeepraj.singh@atosorigin.com> wrote:
>
> Hi Mario,
>
> Althought the checkboxes render allright , I am getting this error while
> using ioko library in for Tapestry5Grid .
>
> Error: this.childArray[child].element is undefined in boundCheckbox.js
>
> At this line
>
> this.childArray[child].element.checked=this.element.checked;
>
>
> Below is the code that i have written,
>
> In MyTest.tml
> =============
> <t:parameter name="checkBoxFieldHeader">
> <t:checkbox t:id="mastercheckbox2" value="selectedCheckBox2"
> t:mixins="ioko/boundcheckbox"/>
> </t:parameter>
> <t:parameter name="checkBoxFieldCell">
> <t:checkbox t:id="slavecheckbox2" value="currentSelected"
> t:mixins="ioko/boundcheckbox" master="mastercheckbox2"/>
> </t:parameter>
>
>
> In MyTest.java
> =============
>
>
> @Property
> private boolean selectedCheckBox2;
>
> @Property
> private boolean currentSelected;
>
> Any Pointers?
>
> Thanks
> Sandeep
>
> Mario Udina-2 wrote:
> >
> > Hello!
> >
> > I just wanted to leave a trace on subject, as I spent some time on it.
> > I have tried the lombok checkboxgroup demo and am not able to make it
> work
> > in a grid.
> > However the ioko-tapestry-commons checkbox group works like a charm in a
> > grid.
> >
> > regards,
> > Mario Udina
> >
> > On Fri, Jul 31, 2009 at 1:45 PM, sandeepraj singh <
> > sandeepraj.singh@atosorigin.com> wrote:
> >
> >>
> >> Thanks for your replies Robin and Shing,
> >>
> >> @Robin,
> >>
> >> Your answer did the trick. I created a master checkbox and added slave
> >> checkboxes too. I think a simple javascript would help me get
> >> check/uncheck
> >> and get master slave checkbox relations. Although i expected Tapestry to
> >> do
> >> that bit too for me(too greedy of me).
> >>
> >> @ Shing,
> >> Your demo was quite informative, i didnot try to add it with Grid, but
> >> would
> >> try it some other time. I saw other demos too and they are very
> >> good.Thanks
> >> for the help.
> >>
> >> Thanks
> >> Sandeep
> >>
> >>
> >>
> >>
> >> Shing Hing Man wrote:
> >> >
> >> >
> >> > In case you have not tried the following.
> >> >
> >> > I have a ControlCB component and a mixin ControlledCheckbox which
> turns
> >> a
> >> > standard Checkbox component to be a controlled checkbox.
> >> > There is an online demo (with source code of the demo) at
> >> >
> >>
> http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo
> >> >
> >> > Please go to http://lombok.demon.co.uk/tapestry5Demo/ for source
> code
> >> of
> >> > the components.
> >> >
> >> >
> >> > I do not know whether the above will work in a Grid.
> >> > But it might worth a try. Use a ControlCB component as your master
> >> > checkbox (can't remember whether you can have a component in a
> >> header)
> >> > and add the mixin into other checkboxes in the column.
> >> >
> >> >
> >> > Shing
> >> >
> >> >
> >> >
> >> >
> >> > --- On Fri, 31/7/09, sandeepraj singh <
> sandeepraj.singh@atosorigin.com>
> >> > wrote:
> >> >
> >> >> From: sandeepraj singh <sa...@atosorigin.com>
> >> >> Subject: Have a Master Checkbox For T5 Grid Component
> >> >> To: users@tapestry.apache.org
> >> >> Date: Friday, 31 July, 2009, 3:43 PM
> >> >>
> >> >> Hi Guys,
> >> >> I wanted to have a master CheckBox while using the Grid
> >> >> Component. That
> >> >> CheckBox would be present at the Header Row of Grid
> >> >> Components, and allow to
> >> >> check the CheckBoxes below to be checked or
> >> >> unchecked.
> >> >> Is there any way else to do it except for Copying the
> >> >> entire Grid Component
> >> >> Source Code to MYOWNGRID and then making changes to
> >> >> GridColoumn Component
> >> >> inside Grid Source Code that would be copied.
> >> >>
> >> >> Any Pointers would be of great help
> >> >>
> >> >> Thanks
> >> >> Sandy
> >> >> --
> >> >> View this message in context:
> >> >>
> >>
> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24752416.html
> >> >> Sent from the Tapestry - User mailing list archive at
> >> >> Nabble.com.
> >> >>
> >> >>
> >> >> ---------------------------------------------------------------------
> >> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> > For additional commands, e-mail: users-help@tapestry.apache.org
> >> >
> >> >
> >> >
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24755793.html
> >> Sent from the Tapestry - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p26421285.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Have a Master Checkbox For T5 Grid Component
Posted by sandeepraj singh <sa...@atosorigin.com>.
hi All,
I agree to Mario, ioko library works fine.
What i had missed was
to inject master checkbox in my java file
@InjectComponent
@Property
private Checkbox mastercheckbox2;
Thanks
Sandeep
sandeepraj singh wrote:
>
> Hi Mario,
>
> I am getting this error while using ioko library in for Tapestry5Grid.
>
> this.childArray[child].element is undefined in boundCheckbox.js
>
> At this line this.childArray[child].element.checked=this.element.checked;
> in this js
>
> Below is the code that i have written,
>
> In MyTest.tml
> =============
> <t:parameter name="checkBoxFieldHeader">
> <t:checkbox t:id="mastercheckbox2" value="selectedCheckBox2"
> t:mixins="ioko/boundcheckbox"/>
> </t:parameter>
> <t:parameter name="checkBoxFieldCell">
> <t:checkbox t:id="slavecheckbox2" value="currentSelected"
> t:mixins="ioko/boundcheckbox" master="mastercheckbox2"/>
> </t:parameter>
>
>
> In MyTest.java
> =============
>
>
> @Property
> private boolean selectedCheckBox2;
>
> @Property
> private boolean currentSelected;
>
> Any Pointers?
>
> Thanks
> Sandeep
>
> Mario Udina-2 wrote:
>>
>> Hello!
>>
>> I just wanted to leave a trace on subject, as I spent some time on it.
>> I have tried the lombok checkboxgroup demo and am not able to make it
>> work
>> in a grid.
>> However the ioko-tapestry-commons checkbox group works like a charm in a
>> grid.
>>
>> regards,
>> Mario Udina
>>
>> On Fri, Jul 31, 2009 at 1:45 PM, sandeepraj singh <
>> sandeepraj.singh@atosorigin.com> wrote:
>>
>>>
>>> Thanks for your replies Robin and Shing,
>>>
>>> @Robin,
>>>
>>> Your answer did the trick. I created a master checkbox and added slave
>>> checkboxes too. I think a simple javascript would help me get
>>> check/uncheck
>>> and get master slave checkbox relations. Although i expected Tapestry to
>>> do
>>> that bit too for me(too greedy of me).
>>>
>>> @ Shing,
>>> Your demo was quite informative, i didnot try to add it with Grid, but
>>> would
>>> try it some other time. I saw other demos too and they are very
>>> good.Thanks
>>> for the help.
>>>
>>> Thanks
>>> Sandeep
>>>
>>>
>>>
>>>
>>> Shing Hing Man wrote:
>>> >
>>> >
>>> > In case you have not tried the following.
>>> >
>>> > I have a ControlCB component and a mixin ControlledCheckbox which
>>> turns a
>>> > standard Checkbox component to be a controlled checkbox.
>>> > There is an online demo (with source code of the demo) at
>>> >
>>> http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo
>>> >
>>> > Please go to http://lombok.demon.co.uk/tapestry5Demo/ for source code
>>> of
>>> > the components.
>>> >
>>> >
>>> > I do not know whether the above will work in a Grid.
>>> > But it might worth a try. Use a ControlCB component as your master
>>> > checkbox (can't remember whether you can have a component in a
>>> header)
>>> > and add the mixin into other checkboxes in the column.
>>> >
>>> >
>>> > Shing
>>> >
>>> >
>>> >
>>> >
>>> > --- On Fri, 31/7/09, sandeepraj singh
>>> <sa...@atosorigin.com>
>>> > wrote:
>>> >
>>> >> From: sandeepraj singh <sa...@atosorigin.com>
>>> >> Subject: Have a Master Checkbox For T5 Grid Component
>>> >> To: users@tapestry.apache.org
>>> >> Date: Friday, 31 July, 2009, 3:43 PM
>>> >>
>>> >> Hi Guys,
>>> >> I wanted to have a master CheckBox while using the Grid
>>> >> Component. That
>>> >> CheckBox would be present at the Header Row of Grid
>>> >> Components, and allow to
>>> >> check the CheckBoxes below to be checked or
>>> >> unchecked.
>>> >> Is there any way else to do it except for Copying the
>>> >> entire Grid Component
>>> >> Source Code to MYOWNGRID and then making changes to
>>> >> GridColoumn Component
>>> >> inside Grid Source Code that would be copied.
>>> >>
>>> >> Any Pointers would be of great help
>>> >>
>>> >> Thanks
>>> >> Sandy
>>> >> --
>>> >> View this message in context:
>>> >>
>>> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24752416.html
>>> >> Sent from the Tapestry - User mailing list archive at
>>> >> Nabble.com.
>>> >>
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> >> For additional commands, e-mail: users-help@tapestry.apache.org
>>> >>
>>> >>
>>> >
>>> >
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> > For additional commands, e-mail: users-help@tapestry.apache.org
>>> >
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24755793.html
>>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>>
>
>
--
View this message in context: http://old.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p26435725.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Have a Master Checkbox For T5 Grid Component
Posted by sandeepraj singh <sa...@atosorigin.com>.
Hi Mario,
Althought the checkboxes render allright , I am getting this error while
using ioko library in for Tapestry5Grid .
Error: this.childArray[child].element is undefined in boundCheckbox.js
At this line
this.childArray[child].element.checked=this.element.checked;
Below is the code that i have written,
In MyTest.tml
=============
<t:parameter name="checkBoxFieldHeader">
<t:checkbox t:id="mastercheckbox2" value="selectedCheckBox2"
t:mixins="ioko/boundcheckbox"/>
</t:parameter>
<t:parameter name="checkBoxFieldCell">
<t:checkbox t:id="slavecheckbox2" value="currentSelected"
t:mixins="ioko/boundcheckbox" master="mastercheckbox2"/>
</t:parameter>
In MyTest.java
=============
@Property
private boolean selectedCheckBox2;
@Property
private boolean currentSelected;
Any Pointers?
Thanks
Sandeep
Mario Udina-2 wrote:
>
> Hello!
>
> I just wanted to leave a trace on subject, as I spent some time on it.
> I have tried the lombok checkboxgroup demo and am not able to make it work
> in a grid.
> However the ioko-tapestry-commons checkbox group works like a charm in a
> grid.
>
> regards,
> Mario Udina
>
> On Fri, Jul 31, 2009 at 1:45 PM, sandeepraj singh <
> sandeepraj.singh@atosorigin.com> wrote:
>
>>
>> Thanks for your replies Robin and Shing,
>>
>> @Robin,
>>
>> Your answer did the trick. I created a master checkbox and added slave
>> checkboxes too. I think a simple javascript would help me get
>> check/uncheck
>> and get master slave checkbox relations. Although i expected Tapestry to
>> do
>> that bit too for me(too greedy of me).
>>
>> @ Shing,
>> Your demo was quite informative, i didnot try to add it with Grid, but
>> would
>> try it some other time. I saw other demos too and they are very
>> good.Thanks
>> for the help.
>>
>> Thanks
>> Sandeep
>>
>>
>>
>>
>> Shing Hing Man wrote:
>> >
>> >
>> > In case you have not tried the following.
>> >
>> > I have a ControlCB component and a mixin ControlledCheckbox which turns
>> a
>> > standard Checkbox component to be a controlled checkbox.
>> > There is an online demo (with source code of the demo) at
>> >
>> http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo
>> >
>> > Please go to http://lombok.demon.co.uk/tapestry5Demo/ for source code
>> of
>> > the components.
>> >
>> >
>> > I do not know whether the above will work in a Grid.
>> > But it might worth a try. Use a ControlCB component as your master
>> > checkbox (can't remember whether you can have a component in a
>> header)
>> > and add the mixin into other checkboxes in the column.
>> >
>> >
>> > Shing
>> >
>> >
>> >
>> >
>> > --- On Fri, 31/7/09, sandeepraj singh <sa...@atosorigin.com>
>> > wrote:
>> >
>> >> From: sandeepraj singh <sa...@atosorigin.com>
>> >> Subject: Have a Master Checkbox For T5 Grid Component
>> >> To: users@tapestry.apache.org
>> >> Date: Friday, 31 July, 2009, 3:43 PM
>> >>
>> >> Hi Guys,
>> >> I wanted to have a master CheckBox while using the Grid
>> >> Component. That
>> >> CheckBox would be present at the Header Row of Grid
>> >> Components, and allow to
>> >> check the CheckBoxes below to be checked or
>> >> unchecked.
>> >> Is there any way else to do it except for Copying the
>> >> entire Grid Component
>> >> Source Code to MYOWNGRID and then making changes to
>> >> GridColoumn Component
>> >> inside Grid Source Code that would be copied.
>> >>
>> >> Any Pointers would be of great help
>> >>
>> >> Thanks
>> >> Sandy
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24752416.html
>> >> Sent from the Tapestry - User mailing list archive at
>> >> Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> >> For additional commands, e-mail: users-help@tapestry.apache.org
>> >>
>> >>
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> > For additional commands, e-mail: users-help@tapestry.apache.org
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24755793.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
--
View this message in context: http://old.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p26421285.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Have a Master Checkbox For T5 Grid Component
Posted by Mario Udina <m....@gmail.com>.
Hello!
I just wanted to leave a trace on subject, as I spent some time on it.
I have tried the lombok checkboxgroup demo and am not able to make it work
in a grid.
However the ioko-tapestry-commons checkbox group works like a charm in a
grid.
regards,
Mario Udina
On Fri, Jul 31, 2009 at 1:45 PM, sandeepraj singh <
sandeepraj.singh@atosorigin.com> wrote:
>
> Thanks for your replies Robin and Shing,
>
> @Robin,
>
> Your answer did the trick. I created a master checkbox and added slave
> checkboxes too. I think a simple javascript would help me get check/uncheck
> and get master slave checkbox relations. Although i expected Tapestry to do
> that bit too for me(too greedy of me).
>
> @ Shing,
> Your demo was quite informative, i didnot try to add it with Grid, but
> would
> try it some other time. I saw other demos too and they are very good.Thanks
> for the help.
>
> Thanks
> Sandeep
>
>
>
>
> Shing Hing Man wrote:
> >
> >
> > In case you have not tried the following.
> >
> > I have a ControlCB component and a mixin ControlledCheckbox which turns a
> > standard Checkbox component to be a controlled checkbox.
> > There is an online demo (with source code of the demo) at
> >
> http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo
> >
> > Please go to http://lombok.demon.co.uk/tapestry5Demo/ for source code
> of
> > the components.
> >
> >
> > I do not know whether the above will work in a Grid.
> > But it might worth a try. Use a ControlCB component as your master
> > checkbox (can't remember whether you can have a component in a header)
> > and add the mixin into other checkboxes in the column.
> >
> >
> > Shing
> >
> >
> >
> >
> > --- On Fri, 31/7/09, sandeepraj singh <sa...@atosorigin.com>
> > wrote:
> >
> >> From: sandeepraj singh <sa...@atosorigin.com>
> >> Subject: Have a Master Checkbox For T5 Grid Component
> >> To: users@tapestry.apache.org
> >> Date: Friday, 31 July, 2009, 3:43 PM
> >>
> >> Hi Guys,
> >> I wanted to have a master CheckBox while using the Grid
> >> Component. That
> >> CheckBox would be present at the Header Row of Grid
> >> Components, and allow to
> >> check the CheckBoxes below to be checked or
> >> unchecked.
> >> Is there any way else to do it except for Copying the
> >> entire Grid Component
> >> Source Code to MYOWNGRID and then making changes to
> >> GridColoumn Component
> >> inside Grid Source Code that would be copied.
> >>
> >> Any Pointers would be of great help
> >>
> >> Thanks
> >> Sandy
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24752416.html
> >> Sent from the Tapestry - User mailing list archive at
> >> Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24755793.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Have a Master Checkbox For T5 Grid Component
Posted by sandeepraj singh <sa...@atosorigin.com>.
Thanks for your replies Robin and Shing,
@Robin,
Your answer did the trick. I created a master checkbox and added slave
checkboxes too. I think a simple javascript would help me get check/uncheck
and get master slave checkbox relations. Although i expected Tapestry to do
that bit too for me(too greedy of me).
@ Shing,
Your demo was quite informative, i didnot try to add it with Grid, but would
try it some other time. I saw other demos too and they are very good.Thanks
for the help.
Thanks
Sandeep
Shing Hing Man wrote:
>
>
> In case you have not tried the following.
>
> I have a ControlCB component and a mixin ControlledCheckbox which turns a
> standard Checkbox component to be a controlled checkbox.
> There is an online demo (with source code of the demo) at
> http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo
>
> Please go to http://lombok.demon.co.uk/tapestry5Demo/ for source code of
> the components.
>
>
> I do not know whether the above will work in a Grid.
> But it might worth a try. Use a ControlCB component as your master
> checkbox (can't remember whether you can have a component in a header)
> and add the mixin into other checkboxes in the column.
>
>
> Shing
>
>
>
>
> --- On Fri, 31/7/09, sandeepraj singh <sa...@atosorigin.com>
> wrote:
>
>> From: sandeepraj singh <sa...@atosorigin.com>
>> Subject: Have a Master Checkbox For T5 Grid Component
>> To: users@tapestry.apache.org
>> Date: Friday, 31 July, 2009, 3:43 PM
>>
>> Hi Guys,
>> I wanted to have a master CheckBox while using the Grid
>> Component. That
>> CheckBox would be present at the Header Row of Grid
>> Components, and allow to
>> check the CheckBoxes below to be checked or
>> unchecked.
>> Is there any way else to do it except for Copying the
>> entire Grid Component
>> Source Code to MYOWNGRID and then making changes to
>> GridColoumn Component
>> inside Grid Source Code that would be copied.
>>
>> Any Pointers would be of great help
>>
>> Thanks
>> Sandy
>> --
>> View this message in context:
>> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24752416.html
>> Sent from the Tapestry - User mailing list archive at
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24755793.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Have a Master Checkbox For T5 Grid Component
Posted by Inge Solvoll <in...@gmail.com>.
http://tapestry.formos.com/nightly/ioko-tapestry-commons/tapestry-mixins/
On Fri, Jul 31, 2009 at 11:13 AM, Shing Hing Man <ma...@yahoo.com> wrote:
>
> In case you have not tried the following.
>
> I have a ControlCB component and a mixin ControlledCheckbox which turns a
> standard Checkbox component to be a controlled checkbox.
> There is an online demo (with source code of the demo) at
> http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo
>
> Please go to http://lombok.demon.co.uk/tapestry5Demo/ for source code of
> the components.
>
>
> I do not know whether the above will work in a Grid.
> But it might worth a try. Use a ControlCB component as your master
> checkbox (can't remember whether you can have a component in a header) and
> add the mixin into other checkboxes in the column.
>
>
> Shing
>
>
>
>
> --- On Fri, 31/7/09, sandeepraj singh <sa...@atosorigin.com>
> wrote:
>
> > From: sandeepraj singh <sa...@atosorigin.com>
> > Subject: Have a Master Checkbox For T5 Grid Component
> > To: users@tapestry.apache.org
> > Date: Friday, 31 July, 2009, 3:43 PM
> >
> > Hi Guys,
> > I wanted to have a master CheckBox while using the Grid
> > Component. That
> > CheckBox would be present at the Header Row of Grid
> > Components, and allow to
> > check the CheckBoxes below to be checked or
> > unchecked.
> > Is there any way else to do it except for Copying the
> > entire Grid Component
> > Source Code to MYOWNGRID and then making changes to
> > GridColoumn Component
> > inside Grid Source Code that would be copied.
> >
> > Any Pointers would be of great help
> >
> > Thanks
> > Sandy
> > --
> > View this message in context:
> http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24752416.html
> > Sent from the Tapestry - User mailing list archive at
> > Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
Re: Have a Master Checkbox For T5 Grid Component
Posted by Shing Hing Man <ma...@yahoo.com>.
In case you have not tried the following.
I have a ControlCB component and a mixin ControlledCheckbox which turns a standard Checkbox component to be a controlled checkbox.
There is an online demo (with source code of the demo) at
http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo
Please go to http://lombok.demon.co.uk/tapestry5Demo/ for source code of the components.
I do not know whether the above will work in a Grid.
But it might worth a try. Use a ControlCB component as your master checkbox (can't remember whether you can have a component in a header) and add the mixin into other checkboxes in the column.
Shing
--- On Fri, 31/7/09, sandeepraj singh <sa...@atosorigin.com> wrote:
> From: sandeepraj singh <sa...@atosorigin.com>
> Subject: Have a Master Checkbox For T5 Grid Component
> To: users@tapestry.apache.org
> Date: Friday, 31 July, 2009, 3:43 PM
>
> Hi Guys,
> I wanted to have a master CheckBox while using the Grid
> Component. That
> CheckBox would be present at the Header Row of Grid
> Components, and allow to
> check the CheckBoxes below to be checked or
> unchecked.
> Is there any way else to do it except for Copying the
> entire Grid Component
> Source Code to MYOWNGRID and then making changes to
> GridColoumn Component
> inside Grid Source Code that would be copied.
>
> Any Pointers would be of great help
>
> Thanks
> Sandy
> --
> View this message in context: http://www.nabble.com/Have-a-Master-Checkbox-For-T5-Grid-Component-tp24752416p24752416.html
> Sent from the Tapestry - User mailing list archive at
> Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org