• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Struts 2 options for tree controls

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have an application written with Struts 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?

All of the following truths are shameless lies. But what about this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic