• 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

Struts 2 options for tree controls

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We have an application written with Struts 2.1.8.1 that uses the dojo plug-in for the tabbed panels. We need to add functionality to this application that provides tree support. So basically, the app has a top level menu, clicking on each item will display a set of tabs for that item. Some tabs will need to display a tree control where clicking on items in the tree will change the contents of a div to the right of the tree. I also need the tree to maintain state, so if I leave the screen and come back the tree is expanded to the same state with the same item selected.

I was trying to get the dojo <sx:tree> tag to work, and I was running into a lot of problems. After doing some more research, I learned that dojo has been deprecated with Struts 2.2.1. It also seems like people are moving away from tag-based solutions and moving more toward javascript solutions. Is this considered the current best practice?

I've been reading a lot about jquery, but it doesn't look like it has any support for a tree. I've also found some third-party commercial javascript tree controls. Two of them I'm looking at are http://www.treemenu.net/
and http://www.javascripttreemenu.com/.

Does anyone know if there are better options?

Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic