Hi All,

How to add a anchor href to a tree node? I tried few options but none
working.

I first tried like below:

<s:iterator value=*"myList"* status=*"stat"*>
   <s:url id=*"myUrl"* action=*"MyAction"*>
     <s:param name=*"action"*>7</s:param>
   </s:url>
   <s:treenode theme=*"ajax"* id=*"%{#stat.index}"* label="<s:a theme=*
'ajax'* href=*'%{myUrl}'*>*%{myList[#stat.index].name}*</s:a>" />
</s:iterator>

In this way its not evaluating <s:a and printing as it is in view source.

Secondly i tried like:

<s:iterator value=*"myList"* status=*"stat"*>
   <s:url id=*"myUrl"* action=*"MyAction"*>
     <s:param name=*"action"*>7</s:param>
   </s:url>
   <s:a theme=*'ajax'* href=*'%{myUrl}'*>
     <s:treenode theme=*"ajax"* id=*"%{#stat.index}"* label="*
%{myList[#stat.index].name}*" />
   </s:a>
</s:iterator>

And its printing nothing at all.

I want to show the node information when that node is clicked.




-- 
Best Regards,
Faraz Ali

Reply via email to