Hi,
 
I followed the instruction for the tree tag and created a treeview. Now, I want 
to select a tree node and display some data in another ajax div.
 
This is how I created the treeview:
  
<s:tree theme="ajax"
rootNode="%{_rootNode}"
childCollectionProperty="_children"
nodeIdProperty="_id"
nodeTitleProperty="_name">
</s:tree>
 
This is what I would do to link ajax to the result action:
 
<s:url action="viewresult" id="resultUrl">
<s:param name="id" value="%{#id}" />
</s:url>
<s:div id="result" theme="ajax" href="%{resultUrl}" loadingText="Loading..." />
 
Now, the question is how do I know if a node is selected? using onSelected 
attribute to call a javascript function or dojo event? Then, how can I pass the 
select node id to the id in the action parameter?
 
I know this may be a simple question to most of you. But, I just didn't get it 
from the manual.
 
Thanks in advance for your help,
Willa

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to