File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Tree node onclick is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tree node onclick is not working" Watch "Tree node onclick is not working" New topic
Author

Tree node onclick is not working

tania in
Greenhorn

Joined: Jul 05, 2011
Posts: 2
Dear Experts,

Dojo tree is wokring perfectly in my code, but I am not able to link any actions wiht the tree node. Here is my code

<s:textfield label="Name" name="name"/>

<sx:tree label="Kenan Packages" >
<s:iterator value="rpt_portal_plan_List" >
<sx:treenode label = "%{PACKAGE_NAME}" >
<s:iterator value="rpt_portal_hir_List" >
<sx:treenode label = "%{USAGE_TYPE}" >
<sx:treenode label = "%{ CALL_TYPE}">
<sx:treenode label = "%{MO}" >
<sx:treenode label = "%{ONET}" />


<sx:treenode label = "%{OFNET}" />

</sx:treenode>
<sx:treenode label = "%{MT}" >
<sx:treenode label = "%{ONET}" />
<sx:treenode label = "%{OFNET}" />
</sx:treenode>
</sx:treenode>
</sx:treenode>
</s:iterator>
</sx:treenode>
</s:iterator>
</sx:tree>

ONET and OFNET values are coming from the database. My pupose is to execute action on clicking on Child tree node ONNET adn OFNET. Please help !

Thanks,
tania :banghead:
tania in
Greenhorn

Joined: Jul 05, 2011
Posts: 2
Please please help !!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tree node onclick is not working
 
Similar Threads
Struts2: How to use tree tag
Struts 2: tree tag causing javascript errors
Need help understanding Dojo Struts2 ajax tree generation
Ajax tag is not working in strus2.1.6 with eclipse editor
[Struts] redirection page with dojo tag and javascript