Two GWT scripts in one page.

28 views
Skip to first unread message

Luis Montes

unread,
Oct 27, 2011, 12:19:54 PM10/27/11
to google-we...@googlegroups.com
So I've gotten GWT to make a cross domain script with the xsiframe linker and it works ok.

However one problem:

In my local GWT app i'm developing, I'm doing something like this:

<script type="text/javascript" language="javascript" src="http://otherhost.com/xsapp/xsapp.nocache.js"></script>

<script type="text/javascript" language="javascript" src="/myapp/myapp.nocache.js"></script>

This works fine if I load up  http://127.0.0.1:8888/index.jsp  

it breaks.

It looks like in the debugger, it's trying to debug xsapp.nocache.js which it should not need to.

Is there a workaround for this?  Seems like we can't just use standalone (non-inherited) GWT libraries if this can't be done.

Luis


Thomas Broyer

unread,
Oct 27, 2011, 12:23:48 PM10/27/11
to google-we...@googlegroups.com
You can use several GWT modules in the same HTML page, but then the DevMode applies for all of them. (at least I'm not aware of a way to filter the modules it'd apply to)

Luis Montes

unread,
Oct 27, 2011, 12:27:19 PM10/27/11
to google-we...@googlegroups.com
That's the problem.  I still need to use dev mode.  There really should be some configuration for this.



On Thu, Oct 27, 2011 at 9:23 AM, Thomas Broyer <t.br...@gmail.com> wrote:
You can use several GWT modules in the same HTML page, but then the DevMode applies for all of them. (at least I'm not aware of a way to filter the modules it'd apply to)

--
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/-/Engf9SXOUGgJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Robert Zaleski

unread,
Nov 1, 2011, 4:31:06 PM11/1/11
to google-we...@googlegroups.com
I know in the past I used one page for dev mode developing, and I did JS debugging in the full app for integration testing with the obfuscation setting turned down or off so I could step through things in Firefox if needed.  I had a bunch of legacy JS I was integrating with in the full app.

I would think if your site needs two different GWT modules, you would want to do the same.  I'm assuming the functionality for each module is separate enough it makes sense to develop them independently, otherwise why wouldn't you just compile one module to be loaded?
Reply all
Reply to author
Forward
0 new messages