--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
To address your case I would setup 1 Module for the entry point and
use it to choose which of the other Module's to load for the main
page. I think this should allow you to take the most advantage of code
splitting so as not to load any of the data for one page when the
other is chosen.
Something like...
// PageChooserEntryPoint.onModuleLoad()
if(loadPageOne) {
GWT.runAsync(new AsyncCallback() {
(new PageOneEntryPoint).onModuleLoad();
});
} else {
GWT.runAsync(new AsyncCallback() {
(new PageTwoEntryPoint).onModuleLoad();
});
}
Im not sure if thats the best way to go about it, but its the first
thing that came to mind.