Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 : Dojo Tree : Get the ID of selected node.

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have created a tree with struts 2, and i want to get the id of the clicked node. So i have created on topic and one subscriber. and as you can see the subscriber callback method has 3 arguments.

but my understanding of this 3 arguments are not clear...

The format of the Data, request

How do i retrieve the id of selected node.

I have looked into the dojo events docs but couldn't find anything helpful.

Can anybody point me to the right tutorial.. or help me out with it...

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In the below subscriber



in the alert box i am getting following value:

Is this a JSON Object, if yes how do i parse the JSON object, i want to retrieve the ID property of leaf node.

[StrutsTreeNode Tree:[StrutsTree ID:Admin] IDataSource TitleataSource]

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic