Thanks for the pointer to the ScriptInjector, didn't know that before.

It's not that I don't want to update my libraries, but in my case the 3rd 
party library I am using to include flash content (gwt2swf) seems to be no 
longer maintained. So I guess I *have* to do it by myself using the 
ScriptInjector :-)

On Monday, November 12, 2012 5:54:58 PM UTC+1, Thomas Broyer wrote:
>
>
>
> On Monday, November 12, 2012 4:55:58 PM UTC+1, googelybear wrote:
>>
>> I have the same error when running the code server and this limitation 
>> effectively prevents me from using superdevmode, as in my case the problem 
>> is with an external library that I include which then uses the <script> tag 
>> in its own module xml.
>> Also not being able to use <script> in the module xml 
>> breaks encapsulation of modules, as I know have to include *all* scripts 
>> from *all* libraries in *my* host page (for me that's implementation 
>> details that I don't care about) .
>>
>
> There's 
> ScriptInjector<http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/ScriptInjector.html>to
>  encapsulate loading within the module's code.
>  
>
>> I know superdevmode is still experimental and seriously hope that this 
>> will be fixed. In the meantime does anyone have an idea how to work around 
>> this? Besides manually patching a 3rd party library...
>>
>
> In your module that enables the SuperDevMode hooks, add the 
> failIfScriptTag configuration property and add an entry-point that uses 
> ScriptInjector to load the 3rd-party scripts. The 2 entry points (from your 
> app, inherited GWT module, and from the SuperDevMode-specific module) will 
> both be executed; beware though that onModuleLoad will be called *before* 
> the scripts are loaded, so your code that depends on them has to wait a 
> bit… There are a couple ways to workaround this if really needed (but it's 
> a bit more "invasive" for your app; that being said, xsiframe is the 
> future, and might becomes the default at some point, so better be prepared 
> –and update your 3rd-party libs–)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Jxw4jr8zkvIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to