• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomahawk tree  RSS feed

 
Anila Jacob
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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....
 
Tim Holloway
Bartender
Posts: 18713
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!