Monday, September 27, 2010

Re: embed entire GWT application into single html file

OK, totally got this to work with firefox (I assume it would work with
any other browser, just change the user.agent to the appropriate
value)... here are the lines to add to your module:

<define-linker name="sso"
class="com.google.gwt.core.linker.SingleScriptLinker" />
<set-property name="user.agent" value="gecko"/>
<add-linker name="sso"/>

Then I took the <module name>.nocache.js and embedded the contents in
the <module name>.html file that gwt produces. The app loaded up with
no problems.

On Sep 27, 7:46 pm, Wolfgang <wolfgangmey...@gmail.com> wrote:
> Also some notes on how to narrow it down to only one result:
>
> http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/FAQ_CompileO...
>
> On Sep 27, 5:19 pm, lineman78 <linema...@gmail.com> wrote:
>
> > There was a single file linker in the 1.5 days, dont know if its still
> > around, but it would blow up if it determined more than one
> > permutation is needed.
>
> > On Sep 26, 1:21 pm, Wolfgang <wolfgangmey...@gmail.com> wrote:
>
> > > I've tried doing this on my own with not much success, as the
> > > javascript generated by google web tookit is a bit too cryptic for me.
> > > What I am trying to do is this: embed all html, css, images, and
> > > javascript for my GWT application into a single html file. I only need
> > > to target a single web browser, so I don't need multiple versions of
> > > the html file. Does anyone have any hints on how I might best approach
> > > converting a standard GWT-compiled application into a single html file
> > > version?

--
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