AFAIK - just loading the javascript should suffice. You'll notice in the
nocache.js, the last line of the code calls the function which initializes
GWT & invokes your module.
Are you having any problems with this? One hint I have is that in your
onModuleLoad, make sure you use the appropriate RootPanel (RootPanel.get()
returns <body>). Since you're loading the GWT dynamically into an existing
page, you probably want to create a div with an appropriate iD for it to use
(i.e. <div id="DynamicGWT"></div>). Then use RootPanel.get("DynamicGWT")
instead.
On Wed, Mar 18, 2009 at 10:48 PM, markmac <[email protected]> wrote:
>
> Hi All,
>
> I am currently trying to integrate GWT into my existing application,
> but Im having trouble doing that at the moment.
>
> Currently I have heaps of custom JavaScript that I will eventually
> migrate to GWT, but for now, I need to figure out how to add some
> custom GWT widgets into my page, but not on page load (as heaps of
> stuff is not yet loaded by the user, etc...) but rather on the
> response callback from an existing AJAX call, can this be done?
>
> Im imagining that I could call some externally exposed method that
> resided within the *.nocache.js file? But Im not sure how that all
> works, etc... If anyone has any resources that I could read up on or
> experience in this area, that would be great!
>
> Cheers,
> Mark
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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
-~----------~----~----~----~------~----~------~--~---