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.si...@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.si...@atosorigin.com>
>> > wrote:
>> >
>> >> From: sandeepraj singh <sandeepraj.si...@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-unsubscr...@tapestry.apache.org
>> >> For additional commands, e-mail: users-h...@tapestry.apache.org
>> >>
>> >>
>> >
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> > For additional commands, e-mail: users-h...@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-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@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-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to