Hi, in my project i need to use a tree control, i have started looking at tree tag of struts, but though i wrote some event handle, it is not at all executing any events. he is the part of code...
<head> <title>Showcase - UI Tag Example - Tree Example (Static)</title> <s:head theme="ajax" debug="true" /> </head> <body> *<script> function treeNodeSelected(nodeId) { alert("Hi"); } dojo.event.topic.subscribe("treeSelected", this, "treeNodeSelected"); </script>* <div style="float:left; margin-right: 50px;"> <s:tree label="parent" id="parentId" theme="ajax" treeSelectedTopic="treeSelected"> <s:treenode theme="ajax" label="child1" id="child1Id"> <s:treenode theme="ajax" label="grandchild1" id="grandchild1Id"/> <s:treenode theme="ajax" label="grandchild2" id="grandchild2Id"/> <s:treenode theme="ajax" label="grandchild3" id="grandchild3Id"/> </s:treenode> <s:treenode theme="ajax" label="child2" id="child2Id"/> <s:treenode theme="ajax" label="child3" id="child3Id"/> <s:treenode theme="ajax" label="child4" id="child4Id"/> ---- ----- can you please suggest some solution to this? i am using struts 2.0.11