Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-1425

The form tag is generating incomplete and/or unnecessary references to dojo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None

    Description

      On 8/30/06, Matt Raible <mraible@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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              husted Ted Husted
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: