try : events = "onmouseover"
Josh On 8/16/06, TH <[EMAIL PROTECTED]> wrote:
Jesse thanks for such a quick reply :) Well i just tried this code too @EventListener(elements = "myFavoriteDiv", events = "mouseover") public void watchText(BrowserEvent event) { System.out.println("User clicked on x/y coordinates " + event.getPageX() + "/" + event.getPageY()); } http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html --- Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > You can try using the right event keyword to start > with ;) > > http://www.quirksmode.org/js/events_mouse.html > > (Maybe I should link quircksmode.org in to the main > page so people can more > easily find this handy reference.) > > On 8/16/06, TH <[EMAIL PROTECTED]> wrote: > > > > I have to write some Ajax intensive application. > So i > > decided to tryout Tapestry 4.1 > > > > And it seems like i am missing something very > > important ... because i am not able to run even > the > > most basic example give :( > > > > Home.java > > --------- > > package whiteboard.pages; > > > > import > org.apache.tapestry.annotations.EventListener; > > import org.apache.tapestry.event.BrowserEvent; > > import org.apache.tapestry.html.BasePage; > > > > public abstract class Home extends BasePage > > { > > @EventListener(elements = "myFavoriteDiv", > events = > > "onMouseOver") > > public void watchText(BrowserEvent event) > > { > > System.out.println("User clicked > on x/y coordinates > > " + event.getPageX() + "/" + event.getPageY()); > > } > > } > > > > Home.html > > --------- > > <html jwcid="@Shell" title="Whiteboard" > > ajaxEnabled="ognl:true"> > > <body jwcid="@Body"> > > > > <div id="myFavoriteDiv"> > > Big brother is watching you ... > > </div> > > > > </body> > > </html> > > > > app.application > > ---------------- > > <?xml version="1.0"?> > > <!DOCTYPE application PUBLIC > > "-//Apache Software Foundation//Tapestry > > Specification 4.0//EN" > > > "http://tapestry.apache.org/dtd/Tapestry_4_0.dtd"> > > > > <application> > > <meta > key="org.apache.tapestry.page-class-packages" > > value="whiteboard.pages"/> > > </application> > > > > web.xml > > -------- > > <?xml version="1.0" encoding="UTF-8"?> > > <web-app version="2.4" > > xmlns="http://java.sun.com/xml/ns/j2ee" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > > > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > > > > <display-name>Whiteboard</display-name> > > > > <servlet> > > <servlet-name>app</servlet-name> > > > > > <servlet-class>org.apache.tapestry.ApplicationServlet</servlet-class> > > > <load-on-startup>0</load-on-startup> > > </servlet> > > > > <servlet-mapping> > > <servlet-name>app</servlet-name> > > <url-pattern>/app</url-pattern> > > </servlet-mapping> > > > > </web-app> > > > > Can any body help me out by pointing the > problem???? > > > > regards, > > > > TH > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > > --------------------------------------------------------------------- > > 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. > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- 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]