Forums Register Login

Tomahawk tree2 problem

+Pie Number of slices to send: Send
Hi,

I'm pretty new to JSF. I had a training course on it a long time ago but never really got to use it until recently. I've been working with the Tomahawk tree2 tag and it works pretty well with some minor problems.

The site I'm working on is a complete rewrite of an existing intranet site and the old one had a tree structure which went to the server every time and the users don't like this as it's too slow. So we want to avoid this and I've set the clientSideToggle to true. With false, everything works just fine, except it goes back to the server. When it is set to true it works, but when I click on a leaf which has a commandLink it does and "expand all" for reasons I can't figure out. This seems to only happen the first time. Afterwards I can collapse some of them and click other links and the state is kept properly. This is my problem with JSF at the moment, I don't know what's actually happening when I click the button so I can't really see why it's expanding all of the nodes.

Other problem, more of a question really, but when I click the commandLink it is posting back to the server to load whatever data I'll be loading. Is there any way to avoid this? I tried setting up an iframe, but this doesn't help. I've tried setting the target attribute on the commandLink to the iframe but it just seems to open in a new window instead of the iframe, and it doesn't display correctly in the new window (the backing bean that's supposed to be holding data appears to be empty in the new window).

Thanks for any help on this.

Also if anyone knows of some good examples using tree2 it would help. I've been searching all day and come across a few but most are quite basic and aren't giving me a great understanding of the component.
[ January 04, 2008: Message edited by: Matt Rossner ]
I think she's lovely. It's this tiny ad that called her crazy:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1240 times.
Similar Threads
JBoss 4.2 and MyFaces
custom component problem
Removing Borders
Tree in JSF.
actionListener a crap shoot
Thread Boost feature
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 08:02:28.