Need more information probably, or a jira issue with some sort of reasonable test case.
The situation you are describing sounds almost identical to : http://opencomponentry.com:8080/timetracker/LocaleList.htm Maybe there is something different for you? JIRA . On 1/24/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote:
[update] i just discovered that the Javascript code gets generated again for every iteration of the For component... but the event reaches the java class at most twice. hope this helps Kristian Marinkovic <kristian.marinko An [EMAIL PROTECTED] Tapestry users > <users@tapestry.apache.org> Kopie 24.01.2007 15:21 Thema multiple events fired on Bitte antworten @EventListener although it should an fire once (Tapestry 4.1.1 "Tapestry users" /4.1.2-20070121) <[EMAIL PROTECTED] pache.org> Hi, the DIV element within the For component has an @EventListener attached. When i click on it my listener method SOMETIMES gets invoked more than once!!! (twice) This happens in 4.1.1 and 4.1.2-SNAPSHOT (20070121). From the generated HTML page i can see that the Javascript code for attaching the events gets generated twice... but only sometimes :) Anyone experienced the same problem? Is it a bug? Any workaround would be appreciated. html file <li jwcid="list_gp"> <div jwcid="[EMAIL PROTECTED]" class="ognl:classForGP"> <p> <span jwcid="list_gp_info">lastname, firstname, zip city</span> </p> </div> </li> page file <component id="list_gp" type="For"> <binding name="source" value="ognl:GPList" /> <binding name="value" value="gpObject" /> </component> java file @EventListener(events={"onclick"},targets="gpdiv") public void doClick(BrowserEvent event) { System.out.println("click: " + event.getTarget().get("id")); } greetings kris --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]