Re: Struts 2 + Dojo nightmare

2007-09-20 Thread Pablo Vázquez Blázquez
My main doubt is how dojo knows what to do in the first case (when I just use the s:a tag) and why it does not know what to do in the second case (when I copy the resultant html from the 1st case to create a new link). Because the resultant html is the same in both cases... Thank you in advanc

Re: Struts 2 + Dojo nightmare

2007-09-20 Thread Pablo Vázquez Blázquez
If I just write your code, the new link is created similar to the other one, but when I click it nothing happens... Do I have to register some event in dojo or sth like this? Thank you very much. Alvaro Sanchez-Mariscal escribió: Why not using dojo api to clone the node? Try ...

Re: Struts 2 + Dojo nightmare

2007-09-20 Thread Alvaro Sanchez-Mariscal
Why not using dojo api to clone the node? Try ... function aver() { var sourceNode = dojo.byId('source'); var targetNode = dojo.byId('workspaceAjaxContent'); dojo.dom.copyChildren(sourceNode, targetNode); } If copyChildren does not fit to your requirements, take a look at

Struts 2 + Dojo nightmare

2007-09-20 Thread Pablo Vázquez Blázquez
Hi all, I´ve been for two whole days treating with this issue, so I would be very greateful if any help. Well, I have a .jspx for my left tile of the page and then I have another tile for the right side. When the left side is loaded, it has 2 links: - one called "Try". If I click this lin