tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Andreou (JIRA)" <...@tapestry.apache.org>
Subject [jira] Closed: (TAPESTRY-2092) EventListener in components that get included more than once in a page aren't triggered
Date Sun, 09 Mar 2008 05:43:46 GMT

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

Andreas Andreou closed TAPESTRY-2092.
-------------------------------------


> EventListener in components that get included more than once in a page aren't triggered

> ----------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2092
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2092
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Annotations, Framework
>    Affects Versions: 4.1.3
>            Reporter: Andreas Andreou
>            Assignee: Jesse Kuhnert
>             Fix For: 4.1.5
>
>         Attachments: tap-2092.zip
>
>
> In a simple component (@Selector) that has a PropertySelection (named data) and this:
>     @EventListener(targets="data", events="onchange")
>     public void doSelect() { System.out.println("Selected: " + getValue()); }
> and in a page that includes this let's say 3 times:
> <form jwcid="@Form">
>    <span jwcid="@Selector"/>
>    <span jwcid="@Selector"/>
>    <span jwcid="@Selector"/>
> </form>
> Only the first selector triggers its listener + i dont see javascript that would bind
the onchange event of the other ones.
> Is this something trivial to fix? 
> Is this a known limitation of the EventListener annotation? 
> Would an EventListener component make things easier in such cases?
> (btw, TAPESTRY-2070 could be similar)

-- 
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


Mime
View raw message