struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manu Mahajan <m...@comprointertech.com>
Subject unable to capture events with <s:tree>
Date Mon, 02 Apr 2007 08:58:49 GMT
I am unable to capture any events with a dynamically created tree.

My jsp code is pasted below. The tree renders correctly. I have tried 
using tags like onclick, onchange etc but it doesnt seem to be working. 
Do I have to use some dojo specific code here?


<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<s:head theme="ajax"/>
<script type="text/javascript">
function nodeClicked(nodeID){
    alert('foo')
}
</script>
</head>
<body>
<s:tree id="categoryTree"
        theme = "ajax"
        rootNode="category"
        childCollectionProperty="categoryList"
        nodeIdProperty="id"
        nodeTitleProperty="name"
        onclick="nodeClicked"
       >
 </s:tree>
</body>
</html>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message