Hello,

I've been doing exactly what JEA asks using GWTx (http://
code.google.com/p/gwtx/)... it extends GWT to use
java.beans.PropertyChange* which implement all that's needed for the
Observer and clientside MVC patterns. As an example for JEA's request
you could implement a "user" model that sends a "userLogged"
PropertyChange event; all registered views (the apps, in his case) to
this event would then update accordingly.

To manage which apps can/can't be displayed an idea would be to use a
static singleton registry-like class...

A very good source of information for propertyChange support and best
programming practices, and my bible for GWT, is the book "GWT in
practice" by Cooper/Collins on Manning.

Hope this helps,
Francesco

P.S. It woud be great if GWT implemented natively the java.beans
package....

On Nov 5, 2:36 pm, walden <[EMAIL PROTECTED]> wrote:
> Joe,
>
> "Aha! moment": GWT is not Java.
>
> Walden
>
> On Nov 5, 2:00 am, JEA <[EMAIL PROTECTED]> wrote:
>
> > Thanks to everyone who contributed their comments on this problem.  It
> > has been tremendously educational for me.  This is my first crack at
> > using GWT.
>
> > To clarify, I am trying to send event messages between separately
> > compiled GWT mini-apps on one page, not just separate modules.  As was
> > suggested in this thread, I've found it an intractable problem without
> > resorting to pure javascript plumbing and it sounds like I may not be
> > doing myself any good anyway as far as speed and size are concerned,
> > at least until I am talking about quite a few different mini-apps.
> > Maybe be the time I reach that point, the runAsync feature will be
> > available and solve that problem, too.
>
> >  As much as anything, it just felt *wrong* to be carrying around from
> > page to page a bunch of app code that would be used on only one or two
> > of the pages, but maybe I just need to get over that and get on with
> > the project.
>
> > Joe
--~--~---------~--~----~------------~-------~--~----~
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