* 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:
Musachy Barroso
2007-03-24 19:10:01 +00:00
parent 3ba68f13d7
commit bae4969cf8
6 changed files with 65 additions and 261 deletions
@@ -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();
@@ -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">