Re: HTML5 Offline Web-Application

2012-04-11 Thread Joshua Kappon
And also, how do you cause the linkers not to run on devMode? On Wednesday, April 11, 2012 4:21:48 PM UTC+3, Joshua Kappon wrote: > > Thanks, > > Can you explain the relationship between the two linkers? > > On Monday, April 9, 2012 3:39:03 AM UTC+3, Shawn wrote: >> >> Hi, >> >> > Followed this th

Re: HTML5 Offline Web-Application

2012-04-11 Thread Joshua Kappon
Thanks, Can you explain the relationship between the two linkers? On Monday, April 9, 2012 3:39:03 AM UTC+3, Shawn wrote: > > Hi, > > > Followed this thread, and also stumbled the same problem. > > anyone solved this? > > >> DevMode warning: Clobbering appcache.nocache.manifest to allow > debugg

Re: HTML5 Offline Web-Application

2012-04-08 Thread Shawn Brown
Hi, > Followed this thread, and also stumbled the same problem. > anyone solved this? >> DevMode warning: Clobbering appcache.nocache.manifest to allow debugging. >> Recompile before deploying your app! >> >> And the appcache.nocache.manifest_user-agent doesn't contain the js file >> name! >> >>

Re: HTML5 Offline Web-Application

2012-04-08 Thread Joshua Kappon
Followed this thread, and also stumbled the same problem. anyone solved this? On Saturday, September 3, 2011 11:37:57 AM UTC+3, -sowdri- wrote: > > Hi, > > The above solution was working fine, i even deployed a version and tested > it live! > > But suddenly i've started getting this error: > >

Re: HTML5 Offline Web-Application

2011-09-05 Thread Stephen Buergler
Passing -compileReport into the gwt compiler while using this linker results in this: http://pastebin.com/dzDafk96 If it is any help this is what I made following a video about GWT. http://pastebin.com/tjTghKVA No template file necessary. I changed the name of the outputted file so that both your

Re: HTML5 Offline Web-Application

2011-09-03 Thread -sowdri-
Hi, The above solution was working fine, i even deployed a version and tested it live! But suddenly i've started getting this error: DevMode warning: Clobbering appcache.nocache.manifest to allow debugging. Recompile before deploying your app! And the appcache.nocache.manifest_*user-agent *

Re: HTML5 Offline Web-Application

2011-09-02 Thread -sowdri-
You must also add this file in the same package as the above class for this to work: appcache.manifest.template http://pastebin.com/ipWSVDS9 Thanks, -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visi

Re: HTML5 Offline Web-Application

2011-09-02 Thread -sowdri-
Thanks Shawn and Stefan! This post helped a lot in designing this linker. A linker based on the discussion above could be found here: GWT HTML5 Offline Manifest Generation Linker http://pastebin.com/JHi7NEuA Thanks, -- You received this message because you are subscribed to the Google Groups

Re: HTML5 Offline Web-Application

2011-08-25 Thread Shawn Brown
> Do I have to rename the returned offline manifest to match the name > described in the HTML file? (appcache.nocache.manifest) No, 1) get the servlet context at init time private ServletContext context; @Override public void init(FilterConfig arg0) throws ServletException {

Re: HTML5 Offline Web-Application

2011-08-25 Thread StrongSteve
So now I created a servlet filter that listens for request for the offline manifest. Not perfect, but working. Upon requesting the offline manifest, the filter redirects to the version applicable for the current user-agent. Problem is, that as soon as there is no network connection, the offline mo

Re: HTML5 Offline Web-Application

2011-08-25 Thread Shawn Brown
.  I need to add in some .css and .gif files, as well > as get the rpc stuff under network so I do the following:  (well I > took some other stuff out ... but this is mostly it ) One more thing: private void addToCache(StringBuilder buf, EmittedArtifact artifact) { buf.append("/

Re: HTML5 Offline Web-Application

2011-08-25 Thread Shawn Brown
Hi, > Sorry for getting confused with the API. I did not want to sound > "rude"... Yeah no problem at all... > The only solution I have come up so far is this: > (It generates an offline manifest for every user.agent. So after > compiling I have six different manifests in the WAR directory. W

Re: HTML5 Offline Web-Application

2011-08-25 Thread StrongSteve
Sorry for getting confused with the API. I did not want to sound "rude"... Using the @Shardable annotation, the method link(...) gets called for every permutation. The paramter ArtifactSet artifacts contains exactly those files I need and want to add to my offline manifest. Sadly I am stuck on ge

Re: HTML5 Offline Web-Application

2011-08-25 Thread Shawn Brown
> @1: Chrome Dev Tools are great. Nevertheless I was thinking about > reading the online/offline DOM flag from within my client code to > detect whether the application is online or offline. Oh, that I do not know. > @2: Great idea. Servlet filter, intercepting requests to > appcache.nocache.mani

Re: HTML5 Offline Web-Application

2011-08-25 Thread StrongSteve
Hello Shwan, Thanks for you reply! @1: Chrome Dev Tools are great. Nevertheless I was thinking about reading the online/offline DOM flag from within my client code to detect whether the application is online or offline. @2: Great idea. Servlet filter, intercepting requests to appcache.nocache.ma

Re: HTML5 Offline Web-Application

2011-08-24 Thread Shawn Brown
Hi, > I already succeeded in tweaking the simpleappcachelinker class a > little bit to create a first simple Offline application. > > Now I have two question concerning this topic: > > 1.) Are there methods inside GWT to read HTML5 Offline Web Appliation > events? (Online? Offline? Finished Cachin

HTML5 Offline Web-Application

2011-08-24 Thread StrongSteve
Hello, I already succeeded in tweaking the simpleappcachelinker class a little bit to create a first simple Offline application. Now I have two question concerning this topic: 1.) Are there methods inside GWT to read HTML5 Offline Web Appliation events? (Online? Offline? Finished Caching? Cachin