Sudeep is correct.

As of GWT 1.5, the bootstrap model now provides support for this kind of
server configuration via the cross-site linker (xs-linker).
When using the cross-site linker the compiler will still generate a
<module>.nocache.js that you will want to reference within your index.html.
The difference though, is that the <module>.nocache.js produced by the
cross-site linker will link in a cache.js file for each of your permutations
rather than a cache.html file.

To enable the cross-site linking simply add the following to your
<module>.gwt.xml and include a reference to your <module>.nocache.js in your
index.html as you normally would.

<add-linker name="xs"/>

On Mon, Dec 7, 2009 at 6:29 PM, Jay <kry...@tpg.com.au> wrote:

> Hi,
> I'm new to GWT and have been struggling with this issue for a while
> now. I'd like to compile my GWT application so that other sites can
> include my GWT application via a simple script tag
>
> eg.
> <script type="text/javascript" src="http://mydomain.com/MyGWTApp.js";></
> script>
> <script type="text/javascript">
>
> var myApp = new MyApp.init();
> myApp.run();
> </script>
>
>
>
> I've tried just using the MyGWTApp.nocache.js in external sites, but
> this does not work. My guess is MyGWTApp.nocache.js can not load the
> other resources (ie. other js files) that it needs?
>
> Cheers
>
> --
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to