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

------------------------------------------------------------------------------
  
  ==== Technologies Used ====
  
-  *Tapestry 5 
-  *GWT 1.5.3
+  *Tapestry 5 (downloaded for you by Maven!)
+  *GWT 1.5.3 (downloaded for you by Maven!)
   *maven-googlewebtoolkit2-plugin (aka maven-gwt, This is the one from 
com.totsp.gwt)
-  *Maven 2.0.9 (or similar version)
+  *Maven 2.0.9 (or similar version) on classpath
   *Eclipse Ganymede (The big J2EE one)
   *Tomcat 6.0.18 (or similar--probably works fine with Jetty, etc but I have 
not tried)
+  *M2Eclipse plugin for Eclipse
   
  === GWT and Tapestry 5 (Thanks to Martin Kersten) ===
  
@@ -456, +457 @@

  }}}
  
  
-  === The StockWatcherComponent ===
+ === The StockWatcherComponent ===
  {{{
  /*
   * To change this template, choose Tools | Templates
@@ -507, +508 @@

  }}}
  It's kind of like adding it to a HashMap<String,String>.  (It's not really a 
HashMap, but later your Entrypoint will look up values associated with a key;  
The key will be 'stockwatcher', and the values will be the T5 generated ids)
  
-  === The StockWatcherComponent.tml ===
+ === The StockWatcherComponent.tml ===
  Notice the div where the id becomes stockList+component id.  This allows a 
unique and independent stock list to be created.  
  {{{
  <div xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
@@ -543, +544 @@

  
  So instead of having all kinds of code in your entrypoint class, refactor it 
into a separate class that your entrypoint will add to the RootPanel.
  
+ The other tip is that when developing GWT by itself, you usually have a HTML 
file that runs your Javascript.  You can still have those if that's what you 
want, but when using a GWT entrypoint as a compnent, you put the HTML into a 
Tapestry component/template.
+ 
+ The best way to understand this is to get this sample app working and play 
with it.  You'll see that the component TML is minimal, and in some cases, 
could be done away with altogether.
+ 
  == Some unusual things about this ==
  
  The GWT is configured in the POM to output it's compiled directories into 
your src/webapp.

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

Reply via email to