On Fri, Oct 17, 2008 at 5:40 PM, Lex Spoon <[EMAIL PROTECTED]> wrote: > On Fri, Oct 17, 2008 at 3:46 PM, Ray Cromwell <[EMAIL PROTECTED]> wrote: >> BTW, the code that loads the async fragments must be proxy-aware for >> this to work. The GadgetLinker >> generateScriptInjector/generateStylesheetInjector method do this >> manually, but I'm thinking that perhaps the selection script itself >> should have a method like "resolveURL" or something that is provided >> by various linkers, to which core GWT stuff can delegate when it wants >> to check if a URL needs to be rewritten before fetching. > > If I understand correctly what you describe, there actually is such a > function for the particular case of runAsync fragments. It's called > __gwt_getFragmentName. It takes an integer, and maps it to a URL. > The standard linker sets this up in a way that the host page should be > able to override it:
Ray, I looked at this code today, and I don't believe that it is currently possible for users to (easily) override the function. If you get to the point where you need it before it is implemented, let's look at it. It should just be a matter of having the host page pass in the function in some way. There are many easy ways to implement this, so the only question is how to be the most consistent with other information the host page supplies to the GWT-generated code. Lex --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~----------~----~----~----~------~----~------~--~---