You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org> on 2007/02/11 23:52:06 UTC

[jira] Resolved: (TAPESTRY-1241) @EventListener produces multiple events

     [ https://issues.apache.org/jira/browse/TAPESTRY-1241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert resolved TAPESTRY-1241.
-------------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: 4.1.2
         Assignee: Jesse Kuhnert

Thanks for the maven2 project, certainly made it easier to look at. I can't re-produce this currently using the latest 4.1.2-SNAPSHOT version of Tapestry. Maybe it was broken before ? Either way it works now so upgrade I guess. ;)

> @EventListener produces multiple events
> ---------------------------------------
>
>                 Key: TAPESTRY-1241
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1241
>             Project: Tapestry
>          Issue Type: Bug
>          Components: XHR/dhtml/Ajax
>    Affects Versions: 4.1.1
>         Environment: Tapestry 4.1.1 and 4.1.2-20070121
>            Reporter: Kristian Marinkovic
>         Assigned To: Jesse Kuhnert
>            Priority: Blocker
>             Fix For: 4.1.2
>
>         Attachments: EventListener.zip
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org