• 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 tree

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All ,

I used tomahawk t:tree for showing my data in tree structure and displayed that very fine. But my problem is how can we find the node id in bean side when we select one node .Because i want to show some data based on that node.

Can you help me ...please...

thanks in advance....
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Anila! I've split your question out to a thread of its own so that people won't get confused.

I have not worked with Tomahawk in a while, but tree controls often allow selecting more than one node at a time. Selection isn't a Model data attribute normally, it's part of the View State, just like being expanded/collapsed. So you'd need to capture that state someplace that the backend logic can know about it. Either by querying the control or by putting in support logic, such as adding a "selected" flag to the tree node model object and toggling it with a selection listener.

Don't forget that in HTTP systems such as JSF, a listener event isn't a real-time event unless it's wired to an AJAX control. A listener listens when the form is submitted, not when people click on and off on the webpage.
reply
    Bookmark Topic Watch Topic
  • New Topic