Using lower case does the trick. Hooray ! I have just written my first ajax enabled Tapestry 4.1 page.
Thanks ! Shing --- Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > Try changing which events you listen > for...Specifically, don't use captial > case. I think that only works when used on a node > directly. > > Ie: events = "onmouseover" > > On 8/20/06, Shing Hing Man <[EMAIL PROTECTED]> wrote: > > > > I am already using the latest 4.1.1-SNAPSHOT. > > In my pom.xml : > > > > <dependency> > > <groupId>org.apache.tapestry</groupId> > > > > <artifactId>tapestry-framework</artifactId> > > > <version>4.1.1-SNAPSHOT</version> > > </dependency> > > <dependency> > > <groupId>org.apache.tapestry</groupId> > > > > <artifactId>tapestry-annotations</artifactId> > > > <version>4.1.1-SNAPSHOT</version> > > </dependency> > > <dependency> > > <groupId>org.apache.tapestry</groupId> > > > > <artifactId>tapestry-annotations</artifactId> > > > <version>4.1.1-SNAPSHOT</version> > > </dependency> > > <dependency> > > <groupId>org.apache.tapestry</groupId> > > > > <artifactId>tapestry-annotations</artifactId> > > > <version>4.1.1-SNAPSHOT</version> > > </dependency> > > > > In my .m2/repository, > > tapestry-framework-4.1.1-20060819.225847-18.jar > > > > Shing > > > > > > --- Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > > > > you shuold be using the latest 4.1.1-SNAPSHOT > build > > > if you are going to > > > attempt this. (though it might work in the > original > > > 4.1, I can't vouch for > > > it anymore..too many changes since then) > > > > > > On 8/20/06, Shing Hing Man <[EMAIL PROTECTED]> > wrote: > > > > > > > > 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] > > > > > > > > > > > > > > > > > -- > > > Jesse Kuhnert > > > Tapestry/Dojo/(and a dash of TestNG), team > > > member/developer > > > > > > Open source based consulting work centered > around > > > dojo/tapestry/tacos/hivemind. > > > > > > > > > Home page : > > http://uk.geocities.com/matmsh/index.html > > > > > > > > > > > > > ___________________________________________________________ > > All new Yahoo! Mail "The new Interface is stunning > in its simplicity and > === message truncated === 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]