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]

Reply via email to