You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Ted Husted (JIRA)" <ji...@apache.org> on 2006/08/31 10:22:31 UTC

[jira] Created: (WW-1425) References to dojo are being injected, even when dojo is not being used

References to dojo are being injected, even when dojo is not being used
-----------------------------------------------------------------------

                 Key: WW-1425
                 URL: http://issues.apache.org/struts/browse/WW-1425
             Project: Struts 2
          Issue Type: Bug
            Reporter: Ted Husted


On 8/30/06, Matt Raible <mr...@gmail.com> wrote:

Now I'm onto a new issue - it seems like Dojo is getting included at
the bottom of my signup form.

<!-- javascript that is needed for tooltips -->
<script language="JavaScript"
type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>

This results in the following error in my Canoo WebTest:

Signup:

BUILD FAILED
/Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
occurred while executing this line:
/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
Webtest: R_1263.
Test failed.
Test step invoke
(/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
named "click signup link" failed with message "Step[invoke "click
signup link" (2/19)]: Script error loading page executing webtest at:
invoke TypeError: Cannot call method "require" of null (Embedded
script in http://localhost:8080/appfuse-struts-war/signup.html#1)
Source code:
dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"

Total time: 11 seconds

Is this something that's new in Struts 2.0.0?  Do I need to include
Dojo includes in my <head>?

Thanks,

Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WW-1425) The form tag is generating incomplete and/or unnecessary references to dojo

Posted by "Matt Raible (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/WW-1425?page=comments#action_38100 ] 
            
Matt Raible commented on WW-1425:
---------------------------------

I added <s:head theme="css_xhtml"/> to my <head> and this seems to get me a bit further.  Now my Canoo WebTest passes, but spits out:

Signup:
   [invoke] [appfuse-webwork] ERROR [main] ScriptEngine.runtimeError(113) | runtimeError: message=[ActiveXObject Error: no map for Adobe.SVGCtl.] sourceName=[http://localhost:8080/appfuse-struts-war/struts/dojo/dojo.js] line=[492] lineSource=[null] lineOffset=[0]
   [invoke] [appfuse-webwork] ERROR [main] ScriptEngine.runtimeError(113) | runtimeError: message=[ActiveXObject Error: no map for Msxml2.XMLHTTP.] sourceName=[http://localhost:8080/appfuse-struts-war/struts/dojo/dojo.js] line=[526] lineSource=[null] lineOffset=[0]

In Firefox's JavaScript console, I get:

Error: Could not load 'dojo.widget.html.Tooltip'; last tried '__package__.js'
Source File: http://localhost:8080/appfuse-struts-war/struts/dojo/dojo.js
Line: 77

IMO, dojo should be injected into the <head> w/o requiring a tag.

> The form tag is generating incomplete and/or unnecessary references to dojo
> ---------------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1425) The form tag is generating incomplete or unnecssary references to dojo

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1425?page=all ]

Ted Husted updated WW-1425:
---------------------------

    Summary: The form tag is generating incomplete or unnecssary references to dojo  (was: Head tag is not inject references to dojo (and dojo is being referenced even when it it not used))

> The form tag is generating incomplete or unnecssary references to dojo
> ----------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1425) Head tag is not inject references to dojo (and dojo is being referenced even when it it not used)

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1425?page=all ]

Ted Husted updated WW-1425:
---------------------------

    Summary: Head tag is not inject references to dojo (and dojo is being referenced even when it it not used)  (was: References to dojo are being injected, even when dojo is not being used)

A key problem is that the form tag is injecting the reference to dojo even when features like tooltips are not being used.

> Head tag is not inject references to dojo (and dojo is being referenced even when it it not used)
> -------------------------------------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Resolved: (WW-1425) The form tag is generating incomplete and/or unnecessary references to dojo

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1425?page=all ]

Ted Husted resolved WW-1425.
----------------------------

    Resolution: Fixed

Fixed in r439153. 


> The form tag is generating incomplete and/or unnecessary references to dojo
> ---------------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1425) The form tag is generating incomplete and/or unnecessary references to dojo

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1425?page=all ]

Ted Husted updated WW-1425:
---------------------------

    Summary: The form tag is generating incomplete and/or unnecessary references to dojo  (was: The form tag is generating incomplete or unnecssary references to dojo)

> The form tag is generating incomplete and/or unnecessary references to dojo
> ---------------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1425) The form tag is generating incomplete and/or unnecessary references to dojo

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1425?page=all ]

Ted Husted updated WW-1425:
---------------------------

        Fix Version/s: 2.0.0
    Affects Version/s:     (was: 2.0.1)

> The form tag is generating incomplete and/or unnecessary references to dojo
> ---------------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Ted Husted
>             Fix For: 2.0.0
>
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WW-1425) The form tag is generating incomplete and/or unnecessary references to dojo

Posted by "Matt Raible (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/WW-1425?page=comments#action_38101 ] 
            
Matt Raible commented on WW-1425:
---------------------------------

I managed to fix this by removing most of the contents in template/simple/form-close.ftl:

Index: src/main/resources/template/simple/form-close.ftl
===================================================================
--- src/main/resources/template/simple/form-close.ftl	(revision 438942)
+++ src/main/resources/template/simple/form-close.ftl	(working copy)
@@ -1,72 +1 @@
 </form>
-
-<#if (parameters.customOnsubmitEnabled?if_exists)>
-<script>
-<#-- 
-  Enable auto-select of optiontransferselect tag's entries upon containing form's 
-  submission.
--->
-dojo.require("dojo.event.connect");
-<#if (parameters.optiontransferselectIds?if_exists?size > 0)>
-	var containingForm = document.getElementById("${parameters.id}");
-	<#assign selectObjIds = parameters.optiontransferselectIds.keySet() />
-	<#list selectObjIds as selectObjectId>
-		dojo.event.connect(containingForm, "onsubmit", 
-			function(evt) {
-				var selectObj = document.getElementById("${selectObjectId}");
-				<#if parameters.optiontransferselectIds.get(selectObjectId)?exists>
-					<#assign selectTagHeaderKey = parameters.optiontransferselectIds.get(selectObjectId)/>
-					selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}");
-				<#else>
-					selectAllOptionsExceptSome(selectObj, "key", "");
-				</#if>
-			});
-	</#list>
-</#if>
-<#if (parameters.optiontransferselectDoubleIds?if_exists?size > 0)>
-	var containingForm = document.getElementById("${parameters.id}");
-	<#assign selectDoubleObjIds = parameters.optiontransferselectDoubleIds.keySet() />
-	<#list selectDoubleObjIds as selectObjId>
-		dojo.event.connect(containingForm, "onsubmit", 
-			function(evt) {
-				var selectObj = document.getElementById("${selectObjId}");
-				<#if parameters.optiontransferselectDoubleIds.get(selectObjId)?exists>
-					<#assign selectTagHeaderKey = parameters.optiontransferselectDoubleIds.get(selectObjId)/>
-					selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey}");
-				<#else>
-					selectAllOptionsExceptSome(selectObj, "key", "");
-				</#if>
-			});
-	</#list>
-</#if>
-
-
-<#--
-	Enable auto-select of all elements of updownselect tag upon its containing form
-	submission
--->
-<#if (parameters.updownselectIds?if_exists?size > 0)>
-	var containingForm = document.getElementById("${parameters.id}");
-	<#assign tmpIds = parameters.updownselectIds.keySet() />
-	<#list tmpIds as tmpId>
-		dojo.event.connect(containingForm, "onsubmit", 
-			function(evt) {
-				var updownselectObj = document.getElementById("${tmpId}");
-				<#if parameters.updownselectIds.get(tmpId)?exists>
-					<#assign tmpHeaderKey = parameters.updownselectIds.get(tmpId) />
-					selectAllOptionsExceptSome(updownselectObj, "key", "${tmpHeaderKey}");
-				<#else>
-					selectAllOptionsExceptSome(updownselectObj, "key", "");
-				</#if>
-			});
-	</#list>
-</#if>
-</script>
-</#if>
-
-
-<#-- 
- Code that will add javascript needed for tooltips
---><#t/>
-	<#lt/><!-- javascript that is needed for tooltips -->
-	<#lt/><script language="JavaScript" type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>


> The form tag is generating incomplete and/or unnecessary references to dojo
> ---------------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WW-1425) The form tag is generating incomplete and/or unnecessary references to dojo

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/WW-1425?page=comments#action_38102 ] 
            
Ted Husted commented on WW-1425:
--------------------------------

Thanks, Matt. I think I see the problem now. We lost a parameter check along the way. I'm testing another patch now. 

-T.




> The form tag is generating incomplete and/or unnecessary references to dojo
> ---------------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (WW-1425) References to dojo are being injected, even when dojo is not being used

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/struts/browse/WW-1425?page=comments#action_38091 ] 
            
Ted Husted commented on WW-1425:
--------------------------------

On 8/30/06, Don Brown <mr...@apache.org> wrote:
> ATM, Dojo is required for the XHtml theme, due to its use in tooltips
> and several other features.  The head tag should inject the proper dojo
> setup script elements.


> References to dojo are being injected, even when dojo is not being used
> -----------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Ted Husted
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (WW-1425) Head tag is not inject references to dojo (and dojo is being referenced even when it it not used)

Posted by "Ted Husted (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/struts/browse/WW-1425?page=all ]

Ted Husted updated WW-1425:
---------------------------

    Affects Version/s: 2.0.1

> Head tag is not inject references to dojo (and dojo is being referenced even when it it not used)
> -------------------------------------------------------------------------------------------------
>
>                 Key: WW-1425
>                 URL: http://issues.apache.org/struts/browse/WW-1425
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.1
>            Reporter: Ted Husted
>
> On 8/30/06, Matt Raible <mr...@gmail.com> wrote:
> Now I'm onto a new issue - it seems like Dojo is getting included at
> the bottom of my signup form.
> <!-- javascript that is needed for tooltips -->
> <script language="JavaScript"
> type="text/javascript">dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");</script>
> This results in the following error in my Canoo WebTest:
> Signup:
> BUILD FAILED
> /Users/mraible/Work/appfuse-webwork/build.xml:585: The following error
> occurred while executing this line:
> /Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:160: Canoo
> Webtest: R_1263.
> Test failed.
> Test step invoke
> (/Users/mraible/Work/appfuse-webwork/test/web/web-tests.xml:166: )
> named "click signup link" failed with message "Step[invoke "click
> signup link" (2/19)]: Script error loading page executing webtest at:
> invoke TypeError: Cannot call method "require" of null (Embedded
> script in http://localhost:8080/appfuse-struts-war/signup.html#1)
> Source code:
> dojo.require("dojo.widget.html.Tooltip");dojo.require("dojo.fx.html");"
> Total time: 11 seconds
> Is this something that's new in Struts 2.0.0?  Do I need to include
> Dojo includes in my <head>?
> Thanks,
> Matt

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira