I've tried looking for answers to this question, but the terms are so common that I can't find anything useful. Either that or I don't know the right term to include in my search.
-- My goal is to provide GWT web content (an HTML page, the nocache.js and cache.js files, etc.) all from a Java servlet.
My HTML file has a script tag that specifies the servlet (and some parameters) in its "src" attribute. That successfully loads the nocache.js file from my servlet.
Inside the nocache.js file, though, there is a section of calls to "unflattenKeylistIntoAnswers()" that maps browser types to the generated names for the GWT javascript files. I need to prepend my servlet name (and some parameters) to those file names so they will also be loaded from my servlet.
So instead of loading the cache.js files from
"www.myhost/foo/3D4F8081F105F3856719E7F2AEF0133D.cache.js"
the nocache.js file will load them from
"www.myhost/foo/myservlet?page=bar_3D4F8081F105F3856719E7F2AEF0133D.cache.js"
I'm looking for some way to modify the __moduleBase added to the filename in computeUrlForResource(), or some way to redefine the functions like installCode() to change the URL for the .js file.
Any ideas?
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment