• 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

help needed on tree menu

 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to build dynamic tree menu from database. I am hoping that new database menu example on struts-menu will be useful haven't looked into it yet. But my another requirement is when user selects on any node or leaf in tree and click "create xyz" button, code should know which Hierarchy node is currently selected and pass the value to the called jsp. does anyone have done similar job with struts dynamic database driven menu? or is there any other readymade code out? should I use struts menu or any other javascript menu(i am not an expert in javascript though). what is the easiest of achieveing this, i need to make this tree functionaly ready by tomorrow.

Thanks,
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had a similar requirement. I wasn't aware of struts-menu at the time, so I just wrote my own code to render a WebFXTree javaScript tree based on my java model. WebFXTree is an open source javascript package and is available for download at http://webfx.eae.net/ .

As I looked at the struts-menu examples, I noticed that it also used WebFXTree as the underlying model for creating a javaScript tree.

What I wrote was pretty generic, and could be adapted to any java model in a tree-like structure. If you'd like to look at my code, email me at mhigginson@versant.com.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic