Hi
I used GWT and OSGi.
I don't know if it is possible to do a modular client application the
same way as OSGi, in a simple way.
I don't think the problem comes from the Root.get(""), but more from
how you load the JavaScript files from your different Bundles.
Yet, the problem with Root.get() is that you can't get a son of the
already Root.get() element.
<div id="father">
<div id="son">
</div>
</div>
Root.get("father"); //OK
Root.get("son"); //fail
As far I understand, you want to develop a GWT module per OSGi Bundle.
The platform will automatically enhanced the GWT clients with the
presence or not of these OSGi Bundles.
Can you dynamically load GWT modules ?
I don't know the solution.
I think all the modules are compiled in a single JS file, per Browser,
except if you use GWT.runAsync() (split code feature from the SVN
trunk).
With GWT.runAsync(), the initial load is less important, and it will
load new JS file once the code in the runAsync() is called.
But still, the references to these numerous JS files, for each
GWT.runAsync(), are compiled in the very first JavaScript loaded.
So you can split the code, but you can't add new code, unless you do
GWT.runAsync() at multiple levels. (runAsync(...runAsync()))
Or you do this in the JavaScript way, not Java-GWT, with JSNI. I am
not a JS expert.
My best advice is that you should ask information to the Google Wave
Community, they know how to add gadgets.
I am eager to get the code of this GWT-Wave client... There is a lot
to learn there.
Baptiste
On 24 juil, 19:58, Michael Sullivan <[email protected]> wrote:
> I'm looking at using GWT in anOSGiapplication. We want to be able
> to add extra features as bundles. These bundles would add new
> database tables, workflows and screens to an existing application.
>
> I think it would be easy to add something to the menu - have a service
> where the clients polls the server for new menu items, the server uses
> anOSGiservice to check for new features, and the client simply
> rebuilds the menu.
>
> I'm less certain as to how to SHOW a new feature at the UI after it is
> added to a menu. I would think by the time the client code has been
> compiled and sent to the browser, it's too late to do RootPanel.get
> ("xx").add( yy);
>
> Is there some kind of reference I can pass to the client that it can
> use to show a new screen in a 'div' or 'object' section? Would I have
> to pass the HTML application page for the new feature? If so, how
> would I have the browser show it?
>
> Any suggestions would be appreciated.
>
> Mike
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---