GWT just won't work for my use case?

1 view
Skip to first unread message

John O'Conner

unread,
Nov 6, 2009, 12:45:42 PM11/6/09
to Google Web Toolkit
I've been trying to integrate GWT into my company's product for a
couple weeks. And I'm beginning to think that GWT may not be right for
our use case.

Our product adds functionality to client sites when client's link to
our cross-site Javascript file using a <script> tag at the bottom of
their page. Our product uses lots of <script> injections to
communicate with our own servers and provides functionality in the
host page.

I've tried to rewrite portions of our product using GWT, and I try to
invoke it by creating a <script> element and adding it to the document
body. Unfortunately this results in a continuous, never-ending
document load (spinning load icons, etc), and the functionality never
appears.

I'm begging to wonder if my use case that requires me to load my GWT
functionality dynamically using a script injection isn't handled by
GWT. Is that correct? Does GWT just not allow my use case? All the
examples I see of using GWT seem to require that the bootstrap file be
coded into the host document directly...not injected at a later stage.

Best regards,
John

Jeff Chimene

unread,
Nov 6, 2009, 1:33:13 PM11/6/09
to google-we...@googlegroups.com
On Fri, Nov 6, 2009 at 10:45 AM, John O'Conner <jsoc...@gmail.com> wrote:

I've been trying to integrate GWT into my company's product for a
couple weeks. And I'm beginning to think that GWT may not be right for
our use case.

Our product adds functionality to client sites when client's link to
our cross-site Javascript file using a <script> tag at the bottom of
their page. Our product uses lots of <script> injections to
communicate with our own servers and provides functionality in the
host page.

I've tried to rewrite portions of our product using GWT, and I try to
invoke it by creating a <script> element and adding it to the document
body. Unfortunately this results in a continuous, never-ending
document load (spinning load icons, etc), and the functionality never
appears.

I'm begging to wonder if my use case that requires me to load my GWT
functionality dynamically using a script injection isn't handled by
GWT. Is that correct?

I don't think so. For example, the cross-site linker uses script injection.
 
Does GWT just not allow my use case? All the
examples I see of using GWT seem to require that the bootstrap file be
coded into the host document directly...not injected at a later stage.

I think that's correct, in the sense that GWT bootstrap occurs during document load, not later .You don't have control over the initial page load when  "... client's link to
our cross-site Javascript file using a <script> tag at the bottom of their page" For GWT integration, I think you want your script hooks in the <head> tag content, not the <body> tag content.

You might wait around for other replies on this thread.

Reply all
Reply to author
Forward
0 new messages