On 26 juin, 19:27, Carver <[email protected]> wrote:
> > You don't need a hack, just use the "-noserver" mode of the HostedMode
> > (or eventually, use HostedMode "normally" and have a local servlet to
> > proxy requests to your Apache
> > server:http://code.google.com/p/google-web-toolkit/issues/detail?id=3131#c14
> > )
>
> Perhaps I have a fundamental misunderstanding of how "-noserver"
> works. How is it possible for Hosted mode to intercept the loading of
> the javascript module, if the embedded server can't filter the
> traffic?
The <module>.nocache.js will be loaded from Apache, and it contains
some code that will detect it's running inside Hosted Mode, so it
won't request any *.nocache.html file; it'll load hosted.html instead,
which in turn contains some code to "connect" to the Hosted Mode.
I don't know how it's supposed to work exactly in OOPHM (I'm not yet
using it, though I have worked a bit on an Adobe AIR OOPHM six months
ago) but my understanding is that it's the same: the
<module>.nocache.js will see the gwt.hosted= in the query string and
will then use hosted.html instead of a *.cache.html; hosted.html will
then load the OOPHM browser plug-in which will connect to HostedMode.
Same as HostedMode without OOPHM except that it uses a browser plug-in
instead of the special window.external.gwtOnLoad that's injected into
the embedded browser.
Of course, for this to work, the app that is deployed on your Apache
server must have been compiled with GWT trunk so it has the proper
<module>.nocache.js (which knows about OOPHM) and hosted.html (to load
the OOPHM plug-in instead of relying on window.external.gwtOnLoad)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---