You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ashish Raniwala <ar...@gmail.com> on 2005/06/14 09:26:17 UTC
Tacos Tree
Hi Guys,
I need to implement tacos tree with check boxes on the nodes, so that if user select a node all children should also get selected. How to do this? Please suggest.
Thanks,
Ashish
Re: Tacos Tree
Posted by Mark Dillon <md...@gmail.com>.
In case you're interested for future reference, I've documented a way
to mimick submit on change for checkboxes here:
http://jroller.com/page/mdillon101/20050201#mimicking_submitonchange_feature_on_the
HTH,
Mark
On 6/14/05, gvp <bl...@gmail.com> wrote:
> Hello Ashish,
>
> A couple days ago I faced this issue too. Tapestry checkbox doesn't
> support submitonchange property so my solution was to add N
> DirectLinks for each component with specific id and in javascript
> triger navigate(document.all.linkId.url) on checkbox click event.
>
> And in DirectLink listener I changed the state of appropriate model
> objects to checked.
>
> Totally another solution was to rewrite TacosTree to client centric
> state so tree is loadded completely not partially and +/- click doesn't
> do server roundtrip. In this case I check all children nodes in
> javascript. This solution was final for me because I need to get rid
> of server roundtrips when +/- is clicked. This caused reset of the rest of form
> controls.
>
> > Hi Guys,
> > I need to implement tacos tree with check boxes on the nodes, so
> > that if user select a node all children should also get selected.
> > How to do this? Please suggest.
> > Thanks,
> > Ashish
>
>
> --
> Best regards,
> gvp
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: Tacos Tree
Posted by gvp <bl...@gmail.com>.
Hello Ashish,
A couple days ago I faced this issue too. Tapestry checkbox doesn't
support submitonchange property so my solution was to add N
DirectLinks for each component with specific id and in javascript
triger navigate(document.all.linkId.url) on checkbox click event.
And in DirectLink listener I changed the state of appropriate model
objects to checked.
Totally another solution was to rewrite TacosTree to client centric
state so tree is loadded completely not partially and +/- click doesn't
do server roundtrip. In this case I check all children nodes in
javascript. This solution was final for me because I need to get rid
of server roundtrips when +/- is clicked. This caused reset of the rest of form
controls.
> Hi Guys,
> I need to implement tacos tree with check boxes on the nodes, so
> that if user select a node all children should also get selected.
> How to do this? Please suggest.
> Thanks,
> Ashish
--
Best regards,
gvp
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org