struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: unable to capture events with <s:tree>
Date Mon, 02 Apr 2007 13:11:57 GMT
--- Manu Mahajan <manu@comprointertech.com> wrote:
>     function treeNodeSelected(){
>         alert('Temporary like Achilles')
>     }
>     dojo.event.topic.subscribe("/treeSelected",
> this, "treeNodeSelected");
>
> <s:tree id="contentTree"
>         theme = "ajax"
>         rootNode="%{category}"
>         childCollectionProperty="categoryList"
>         nodeIdProperty="id"
>         nodeTitleProperty="name"
>         toggle="expand"
>         toggleDuration="0"
>         treeSelectedTopic="/treeSelected"
>         >
>  </s:tree>

I just don't see anything immediately wrong; the only
differences are the arguments to the JavaScript
function (did you try with a single argument like
mine?) and the "/" in the topic, which definitely
shouldn't matter (but try it anyway).

You're getting no debug output?

> I have a feeling that I'm missing some dependancy.
> Do i need anything apart from the jars in the blank 
> app?

I don't know, but I doubt it. Dojo is contained inside
S2 (at least for 2.0.6; which version are you using
again?)

d.



 
____________________________________________________________________________________
TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

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


Mime
View raw message