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

@EventListener produces multiple events

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 4.1.1
    • 4.1.2
    • XHR/dhtml/Ajax
    • None
    • Tapestry 4.1.1 and 4.1.2-20070121

    Description

      Adding an EventListener to the parent HTML element seems to add additional
      @EventListener to the Tapestry components on every Javascript event. This results
      in the generation of multiple "tapestry.event(hash)=function..." statements although
      only one is correct. This gets apparent when the page is submitted and re-rendered
      again.

      i added a maven2 example project to reproduce the bug.
      please follow these steps:
      1) click on "submit"
      2) click on the second and forth list element and watch the console (should print list-0 and list-2... the target component of the javascript event)
      3) click again on "submit" (you might change the value if you want)
      4) click again on the second list element and watch the console -> list-0 will appear twice
      5) take a look at the generated page to see the multiple tapestry.event statements

      Attachments

        1. EventListener.zip
          6 kB
          Kristian Marinkovic

        Activity

          People

            jkuhnert Jesse Kuhnert
            kristian Kristian Marinkovic
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: