Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2721

EventListener incompatible with scriptaculous

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 4.1.6
    • 4.1.7
    • XHR/dhtml/Ajax
    • None
    • Windows XP / Tomcat 5.5.26 / Tapestry 4.1.6

    Description

      when including scriptacoulus:

      <script src="javascripts/scriptaculous/prototype.js" type="text/javascript"></script>
      <script src="javascripts/scriptaculous/scriptaculous.js" type="text/javascript"></script>

      the event triggered at

      <div id="tesyDiv">
      move over Beethoven
      </div>

      and in the page class:
      @EventListener(events = "mouseover", elements = "tesyDiv")
      public void doMouseOver() {
      System.out.println("called.");
      }

      generates the following error in my Firefox error console:

      Error: buildTargetProperties() Unknown target type:[object HTMLDivElement]
      Source File: http://localhost:8080/kinderhulp/app?service=asset&path=%2Fdojo-0.4.3-custom-4.1.6%2Fdojo.js
      Line: 96

      and the EventListener is not called.

      Removing the scriptacoulus includes makes it work...

      Attachments

        Activity

          People

            andyhot Andreas Andreou
            wasperen Willem van Asperen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: