From 4e9821f05b84ffe3895ac1bcbe9268089967568a Mon Sep 17 00:00:00 2001 From: Musachy Barroso Date: Fri, 28 Sep 2007 18:18:02 +0000 Subject: [PATCH] WW-2017 dojo.hostenv.writeIncludes should pass the true parameter * dojo.hostenv.writeIncludes will only be included if debug="true" on head tag git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@580449 13f79535-47bb-0310-9956-ffa450edef68 --- .../dojo/src/main/resources/template/ajax/dojoRequire.js | 1 - plugins/dojo/src/main/resources/template/ajax/head.ftl | 6 ++++++ .../org/apache/struts2/dojo/views/jsp/ui/HeadTagTest-1.txt | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/dojo/src/main/resources/template/ajax/dojoRequire.js b/plugins/dojo/src/main/resources/template/ajax/dojoRequire.js index 806c65725..daa954ad6 100644 --- a/plugins/dojo/src/main/resources/template/ajax/dojoRequire.js +++ b/plugins/dojo/src/main/resources/template/ajax/dojoRequire.js @@ -28,4 +28,3 @@ dojo.widget.manager.registerWidgetPackage('struts.widget'); dojo.require("struts.widget.*"); dojo.require("dojo.widget.Editor2"); -dojo.hostenv.writeIncludes(); // not needed, but allows the Venkman debugger to work with the includes diff --git a/plugins/dojo/src/main/resources/template/ajax/head.ftl b/plugins/dojo/src/main/resources/template/ajax/head.ftl index b063a3f2a..f5dd79866 100644 --- a/plugins/dojo/src/main/resources/template/ajax/head.ftl +++ b/plugins/dojo/src/main/resources/template/ajax/head.ftl @@ -69,7 +69,13 @@ +<#if parameters.debug?default(false)> + + + \ No newline at end of file diff --git a/plugins/dojo/src/test/resources/org/apache/struts2/dojo/views/jsp/ui/HeadTagTest-1.txt b/plugins/dojo/src/test/resources/org/apache/struts2/dojo/views/jsp/ui/HeadTagTest-1.txt index 6223ced41..6c58d317b 100644 --- a/plugins/dojo/src/test/resources/org/apache/struts2/dojo/views/jsp/ui/HeadTagTest-1.txt +++ b/plugins/dojo/src/test/resources/org/apache/struts2/dojo/views/jsp/ui/HeadTagTest-1.txt @@ -21,6 +21,10 @@ + +