Re: unable to capture events with

2007-04-03 Thread Manu Mahajan
I have posted a comment and the suggested patch on Jira. I think this has probably broken due to a change in Dojo upstream. Dave Newton wrote: --- Manu Mahajan <[EMAIL PROTECTED]> wrote: If your code is working then can you please check what version of struts you are using because it's

Re: unable to capture events with

2007-04-03 Thread Dave Newton
--- Manu Mahajan <[EMAIL PROTECTED]> wrote: > If your code is working then can you please check > what version of struts you are using because it's not > working for me. I am using struts2-core-2.0.6.jar I'm using 2.0.6, fairly recently upgraded from 2.0.5. I tried it out again as a sanity check

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
Yes, I've tried with those options. I'm not getting any debug output in this case. Can anyone verify if the struts showcase app examples work. Because to me it seems that they don't either. Here's code from the sample app. function treeNodeSelected(nodeId) { alert(nodeId)//added by

Re: unable to capture events with

2007-04-02 Thread Dave Newton
--- Manu Mahajan <[EMAIL PROTECTED]> wrote: > function treeNodeSelected(){ > alert('Temporary like Achilles') > } > dojo.event.topic.subscribe("/treeSelected", > this, "treeNodeSelected"); > > theme = "ajax" > rootNode="%{category}" > childCollectionProp

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
Here's my code. function treeNodeSelected(){ alert('Temporary like Achilles') } dojo.event.topic.subscribe("/treeSelected", this, "treeNodeSelected"); I have a feeling that I'm missing some dependancy. Do i need anything apart from the jars in the blank app? Dave N

Re: unable to capture events with

2007-04-02 Thread Dave Newton
--- Manu Mahajan <[EMAIL PROTECTED]> wrote: > I'm using Tomcat 5.5 The code I posted is working for me; can you post your current code? (Personally I won't have access to my code until this evening, but maybe somebody else can help.) d. ___

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
For your information. The tree examples in the struts2 showcase app are also not working. I have tried on a fresh install of Tomcat. The trees render properly but nothing happens on clicking the nodes. As of now I don't have access to any other container so can only test on Tomcat. Manu Mahaja

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
I'm using Tomcat 5.5 Tapio Holopainen wrote: Hi, Which web container you are using? I have found problems when using dojo with Websphere. Regards, - Tapio On Mon, 02 Apr 2007 13:34:25 +0300, Manu Mahajan <[EMAIL PROTECTED]> wrote: Thanks for the reply Dave, but this is not working for

Re: unable to capture events with

2007-04-02 Thread Tapio Holopainen
Hi, Which web container you are using? I have found problems when using dojo with Websphere. Regards, - Tapio On Mon, 02 Apr 2007 13:34:25 +0300, Manu Mahajan <[EMAIL PROTECTED]> wrote: Thanks for the reply Dave, but this is not working for me. I have tried enabling debugging in dojo.

Re: unable to capture events with

2007-04-02 Thread Manu Mahajan
Thanks for the reply Dave, but this is not working for me. I have tried enabling debugging in dojo. Also tried the following method that I found in the dojo documentation, apart from trying to assign event handlers to individual tree nodes. var handlerNode = dojo.widget.byId("contentTree")

Re: unable to capture events with

2007-04-02 Thread Dave Newton
--- Manu Mahajan <[EMAIL PROTECTED]> wrote: > Do I have to use some dojo specific code here? I've been using the Dojo binding stuff; my sample is from a pretty long time ago now but here it is in case it helps. It might just make things worse ;) The Javascript: function treeNodeSelected(nodeId)

unable to capture events with

2007-04-02 Thread Manu Mahajan
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-t