Hi
Try this. Create a directory template/ajax in your application and copy
the file tree.ftl from this page
https://issues.apache.org/struts/browse/WW-1813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
You can search for this string
"/struts/struts2/trunk/plugins/dojo/src/main/resources/template/ajax/tree.ftl
<http://svn.apache.org/viewcvs.cgi//struts/struts2/trunk/plugins/dojo/src/main/resources/template/ajax/tree.ftl/?rev=528866&view=diff&r1=528866&r2=528865&p1=/struts/struts2/trunk/plugins/dojo/src/main/resources/template/ajax/tree.ftl&p2=/struts/struts2/trunk/plugins/dojo/src/main/resources/template/ajax/tree.ftl>"
(You'll find a link to the file modified on 14th Apr)
Your code should work now. I just tested this with a standard 2.0.8
showcase app.
Manu
GEDA wrote:
Is there a workaround in order for this to work ?
<s:tree theme="ajax"
rootNode="%{groupTreeModel}"
childCollectionProperty="children"
nodeIdProperty="id"
nodeTitleProperty="name"
treeSelectedTopic="treeSelected">
</s:tree>
function treeNodeSelected(nodeId) {
dojo.byId("id_group").value = nodeId;
};
dojo.event.topic.subscribe("treeSelected", this, "treeNodeSelected");
</script>
Thank you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]