mirror of
https://github.com/apache/struts.git
synced 2026-08-31 19:35:40 +00:00
WW-1800
* Add "compressed" and "baseRelativePath" attributes to the head tag on the Dojo plugin * Ignore inherited tag attributes on head tag git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@522094 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -34,6 +34,9 @@ public class HeadTagTest extends AbstractUITagTest {
|
||||
HeadTag tag = new HeadTag();
|
||||
tag.setPageContext(pageContext);
|
||||
|
||||
tag.setDebug("true");
|
||||
tag.setCompressed("false");
|
||||
tag.setBaseRelativePath("/path");
|
||||
tag.doStartTag();
|
||||
tag.doEndTag();
|
||||
|
||||
|
||||
+2
-3
@@ -1,14 +1,13 @@
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
// Dojo configuration
|
||||
djConfig={
|
||||
baseRelativePath: "/struts/dojo",
|
||||
isDebug: false,
|
||||
isDebug: true,
|
||||
bindEncoding: "ISO-8859-1",
|
||||
debugAtAllCosts: true // not needed, but allows the Venkman debugger to work with the includes
|
||||
};
|
||||
</script>
|
||||
|
||||
<script language="JavaScript" type="text/javascript" src="/struts/dojo/dojo.js">
|
||||
<script language="JavaScript" type="text/javascript" src="/path/dojo.js.uncompressed.js">
|
||||
</script>
|
||||
|
||||
<script language="JavaScript" type="text/javascript" src="/struts/ajax/dojoRequire.js">
|
||||
|
||||
Reference in New Issue
Block a user