Win a copy of Head First Android this week in the Android forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Need to create dynamic tree view using dojo plugin tag sx:tree in Struts 2

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've been looking all over the place for a working example on how to use the <sx:tree> tag, but I haven't found anything anywhere. I searched in this forum and although there are similar questions, nobody seems to have an answer for it.

Here's what I have to accomplish. I have group of items with subgroups and then the items. I have to create the tree dynamically from mysql, so I have to pass a Collection (Map, Set) from the action to the JSP and then populate the tree. Could anyone PLEASE give a working example? I looked at the Struts doc website but I couldn't find any examples. This is getting frustrating because I need to find a solution very quick.
I appreciate your help!!

BTW. I'm using latest version of Struts 2
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Er, there's an example in the showcase app that ships with the distro.
 
Roberto Hernandez
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:Er, there's an example in the showcase app that ships with the distro.



Yes, but the example in the showcase application doesn't use the <sx:tree> tag and <sx:treenode> I've looked at it already :banghead:
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, yeah, the static example does. With a dynamic tree I'm not sure why you'd need to use treenode.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic