can you please make it into a jira issue so it doesnt get lost?
-igor On 4/24/07, Iulian Costan <[EMAIL PROTECTED]> wrote:
hi, i suppose the id of a script tag added in a ajax response should be preserved, if so then here is the patch. i've created the patch from 1.2codebase but the issue existing in both 1.3, 2.0 codebases. Index: /home/syca/svnroot/wicket/1.2/wicket/src/main/java/wicket/ajax/wicket- ajax.js =================================================================== --- /home/syca/svnroot/wicket/1.2/wicket/src/main/java/wicket/ajax/wicket- ajax.js (revision 530055) +++ /home/syca/svnroot/wicket/1.2/wicket/src/main/java/wicket/ajax/wicket- ajax.js (working copy) @@ -932,7 +932,7 @@ var src = node.getAttribute("src"); if (src != null && src != "") { var onLoad = function(content) { - Wicket.Head.addJavascript(content, null, src); + Wicket.Head.addJavascript(content, node.getAttribute("id"), src); Wicket.Ajax.invokePostCallHandlers(); notify(); } /iulian