Friday, April 1, 2011

Re: How to host GWT in a google-site page?

I would think that you don't upload any GWT js to your google site.  You'll need to have your GWT app hosted on a webserver somewhere, possibly the GAE.  Then add a script element in the site HTML referencing the hosted location of the js file.  You'll have to make sure that your EntryPoint class doesn't add to RootLayoutPanel, rather uses RootPanel and wraps a particular div. 

EntryPoint snippet...
...
RootPanel.get("myApplicationDiv").add(myApplicationPanel);
...

Somewhere in your site HTML, you must have <div id="myApplicationDiv"></div>

Make sure to do some research on cross site scripting.  http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html

Good luck!



--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment