GWT cache.html files.

247 views
Skip to first unread message

Jarek Suchanek

unread,
Oct 21, 2016, 4:30:23 AM10/21/16
to GWT Users
Hi Everyone,

I am working on converting old GWT project to the latest version. I have no prior experience with GWT. My old project includes html, js, and xml files. My problem is that when I rebuild that project in IntelliJ with the latest version of GWT all I get is .js files.
Is that correct?

Thanks

Jarek

Thomas Broyer

unread,
Oct 21, 2016, 4:36:25 AM10/21/16
to GWT Users
Yes.
The "linker" (which is the last step in the compilation process, and is pluggable) was set by default to "std" (also known as IframeLinker) prior to GWT 2.7 and it produced *.cache.html files; starting with GWT 2.7, the default linker is "xsiframe" (aka CrossSiteIframeLinker) and it produces *.cache.js files.

Kirill Prazdnikov

unread,
Oct 21, 2016, 4:40:43 AM10/21/16
to GWT Users
You can also use SSO linker which produce one single script file for all application. 
And (form my perspective) you do not need permutations for all modern browsers (except you want to run on IE8):

Try this (in .gwt.xml):

<set-property name="user.agent" value="safari"/>
<add-linker name="sso"/>

Jarek Suchanek

unread,
Oct 21, 2016, 1:37:46 PM10/21/16
to GWT Users
Thanks Thomas. I appreciate your help. 

What I tried was to go to 2.6.1 version of WGT and after rebuilding the project I can see that the linker was set to Standard. The problem is that the *.cache.html files were still not created. Is there an additional setting I have to change to be able to create those files?

Thanks

Jarek 

Jarek Suchanek

unread,
Oct 21, 2016, 2:21:07 PM10/21/16
to GWT Users
I managed to get the *.cache.html files after fixing some project issues. So I am getting one .cache.js file and a few .cache.html files. The problem I am having now that those files work fine in Chrome but they do not work in IE. Any ideas what to do?

Thanks

Jarek

Michael Joyner

unread,
Oct 24, 2016, 10:41:17 AM10/24/16
to google-we...@googlegroups.com

The SSO linker doesn't work with Superdev Mode. You could try the following instead for modern browser only targeting:


<set-property-fallback name="user.agent" value="safari" />

<set-property name="user.agent" value="safari" />


--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Kirill Prazdnikov

unread,
Oct 24, 2016, 11:16:01 AM10/24/16
to GWT Users
As far as I know there is no need for
<set-property-fallback name="user.agent" value="safari" />
if you have the only perm so the one line enough:
Reply all
Reply to author
Forward
0 new messages