• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomahawk tree2 problem

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic