I have tried out a snippet of code on EventListener at http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html without success.
The listener method watchText should be called whenever the mouse is over the <div id="myFavoriteDiv"> element. But it did not happen for me. It would be appreciated if someone could point out what I have done wrong. I have tested it in Firefox 1.5.0.4 . Shing My .jave class : public class TestEventListener1 extends BasePage implements PageBeginRenderListener { public void pageBeginRender(PageEvent arg0) { System.out.println("In pageBeginRender :"); } @EventListener(elements = "myFavoriteDiv", events = "onMouseOver") public void watchText() { System.out.println("Mouse over myFavoriteDiv"); } } ============= My .page : <?xml version="1.0"?> <!DOCTYPE page-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd"> <page-specification class="man.pages.eventListener.TestEventListener1" /> ================== My .html : <html jwcid="@Shell" title="TestEventListener1" ajaxEnabled="true" browserLogLevel="DEBUG" > <head> <title>TestEventListener1</title> </head> <body jwcid="@Body"> <h1>Test EventListener 1</h1> <div id="myFavoriteDiv">Big brother is watching you.</div> </body> </html> Home page : http://uk.geocities.com/matmsh/index.html ___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]