You could probably invent your own system, but it might be a fairly
advanced task.  If you really need seperate compilation between the
"modules" then you'll have to first create your own inter-module
communication system using javascript and JSNI, maybe a simple publish-
subscribe system would work well.

Then, you can implement each module so that on load it subscribes to
certain events and automatically attaches its widgets to right part of
the DOM when necessary.  You'll be losing much of the benefits of GWT
here - you might be better off using a completely different AJAX
toolkit that already supports modularization.

If you're just talking about having a dynamically generated UI, and
not seperate compilation of modules, then an approach for this would
be, as you said, some kind of declarative UI.  I suggest just using
DOM as the declaration - your UI pieces can attach to the DOM based on
XPath when they load, or at specific times.  Think along the lines of
RootPanel.get("...") except you may need more complexity.

On Nov 12, 5:35 am, Antoine <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I’m currently learning GWT in order to be able to create a prototype
> of our new application. My main issue is the following: we need a
> dynamic application like an OSGi-based one or SOA-based.
> The goal is to have several module/package and each one defines its
> UI. It’s pretty much like Eclipse does but in a Web application.
>
> I try to look at different ways to do that.
> First using OSGi and stuff: Ooops I forgot the compilation…
> Then I though about on-the-fly compilation since the compiler is in
> Java, so it can be called from Java, when the user drop a module. Even
> though this can be interesting and fun to develop it’s not a practical
> solution, too many constraints.
> Then I was left with my last choice: declarative UI where the UI is
> defined in some kind of XML file and instantiate in the client side
> like any other lazy UI but I didn’t find a satisfying library.
>
> I’m looking for feed back on any experience you might have in that
> area: dynamic UI over several modules. If you have interesting reading/
> link/libraries that can help me that would be terrific too. Also, I’m
> open to any other solution that might fill our need of modular
> application.
>
> Thanks a lot in advance,
>
> Antoine.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to