@Thomas, If you could define *application* then I could figure out if I can make any sense of your comment. There may be confusion arising from my sloppy use of the term 'module'. I was talking runtime architecture, not code organization. So maybe I should have said 'component' instead. Anyway, to be clear, I was not talking about GWT Modules. I was talking about components with state, optional user interaction, and an event bus for implicit invocations triggered by other components. I think that's what the OP was describing.
FWIW, I read the post below on monolithic solutions, and I concur with that approach, which is consistent with what I was proposing. Walden On Nov 4, 9:50 am, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 4 nov, 13:11, walden <[EMAIL PROTECTED]> wrote: > > > Joe, > > > You don't need DOM events, per se. Use Observer Pattern. Your Login > > module doesn't need to know who's subscribed. It just needs to > > implement the Observable interface (register listeners, fire login > > state change events). Your other modules are in fact dependent upon > > Login. They need to know how to register listeners, receive events, > > recognize Login events, and then I would suggest you let them probe > > the Login module directly for login state. > > > If you look at how ChangeListener and SourcesChangeEvents work in GWT, > > there are all the elements of the Observer pattern you need, and you > > can copy that. > > Walden, he has and wants (and needs?) distinct *applications* (not > only distinct *modules*), Java-GWT is not an option here. > > @Joe: you'll have to implement such an observer/observable pattern in > pure JavaScript in your host page, and use JSNI in your applications > to register handlers/fire events. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
