Sounds like you've got static code blocks executing for both modules
because they are in the same package.

To make two mutually-exclusive modules, you need to put the different
modules in different packages...  In fact, you'll need three packages
at least...  One for common classes, and one each for the
differentiated modules.  Static code that's in the same package will
execute regardless of what EntryPoints you define.  In fact, you don't
even need EntryPoints to inherit a module;  just one EntryPoint for a
"main" starting point; all others are just there in case you want to
execute non-static code in an EntryPoint implementation {most often
used for Singleton object creation, so deferred binding can change
static functionality}.

Anyway, 2mb IS way too much, are you compiling in DETAILED, PRETTY or
OBF?  Get those modules into their own packages, and you should be
able to load one module without the other.  Just to test, put
Window.alert("Add Product") into your add Product onModuleLoad, and
Window.alert("Product Manager"); in the pm onModuleLoad, then try
running it.  If both alerts are fired, your modules are inheriting
each other, and just separating packages won't be enough.  If this is
the case, post your .gwt.xml files and someone will give you more
specific help...
--~--~---------~--~----~------------~-------~--~----~
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