Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for 
change notification.

The following page has been changed by DanielJue:
http://wiki.apache.org/tapestry/Tapestry5GWTIntegration

New page:
= Tapestry 5 GWT Integration =

This article is on making use of both of these technologies.

==== Reader Requirements ====

 *Basic knowledge of T5 features
 *Know how to create the hello world archetype of both T5 and GWT.
 *very basic Maven knowledge

==== Technologies Used ====

 *Tapestry 5 
 *GWT 1.5.3
 *maven-googlewebtoolkit2-plugin (aka maven-gwt, This is the one from 
com.totsp.gwt)
 *Maven 2.0.9 (or similar version)
 *Eclipse Ganymede (The big J2EE one)
 *Tomcat 6.0.18 (or similar--probably works fine with Jetty, etc but I have not 
tried)
 
=== GWT and Tapestry 5 (Thanks to Martin Kersten) ===

GWT and Tapestry have in common: Both are Web Techs, Both have a client and 
server side

GWT vs. Tapestry: 
 *GWT does not claim nor wants to be a full WebApp multipage framework but a 
WebApp singlepage framework (GWT Apps lose state when page refreshes or changes 
- beside using gears) 
 *GWT is mostly about describing JavaScript using Java whereas Tapestry is 
about describing HTML using Java and Templates. 
 *GWT is all about AJAX (yes I know there are certain areas where no AJAX is 
used at all for instance the view of client side information stores) and 
Tapestry is about HTML with some AJAX if you like to. -> Tapestry uses plain 
'old' HTML Requests with some XHR where as GWT talks only XHR (untrue if you 
are geek and use GWT to extrem of cause :-)). 
 *GWT uses a single servlet endpoint serving AJAX remote calls (XML, JSON) and 
Tapestry has multi-pages with IOC (SOA) and can perform all three kinds of AJAX 
requests (JSON, XML, HTML). 
 *GWT can be embedded within Tapestry pages but a Tapestry page can not be 
embedded within GWT pages (beside IFrames). You will need your own JavaScript 
to let a tapestry page talking to GWT and vise versa.



=== More in a bit ===

What I will show here:

A single project using WTP, includes Tapestry 5 and GWT in one project.
Modifying the POM and Web XML for new entrypoints.
Maven and or CMD file to execute gwt builds
Multiple simple components on one page
Multiple instances of the same RPC component on one page!

Source code link!  The project exists already!

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to