I'm new to
struts and custom tags, but implemented a solution where right click options are added to folders in a tree. It's working in every part of the application that uses that tree except one , where the frame also holds another tree component.
I verified that the options are being added on tree construction but after the tree is constructed nothing happens when I right click, as if the option is being removed immediately after being added. I did debugged this in JS and it appears as if this snippet from a custom tag may be getting called twice :
This is the
jsp code that triggers the custom tag call:
and this is the struts xml that places the right click component into the tree:
My question is how can i trace where the second call is coming from? I don't quite understand how the listener is being called. The
inside of the cm.render method is null the second time around and the reason why my right click components are not present when i right click.
My theory is that node object is being reset when the 2nd tree (which doesn't have right click options) is being created in the frame.
Is there a possibility that this is an AJAX or JS issue? (I'm also green to those tech as well)
Any ideas?