View Full Version : A new HTML requires a new ExtGWT Module?

8 Jul 2009, 6:09 AM

I'm working with ExtGWT on Eclipse.
I was wondering - If I need to move to another HTML file inside my website -
Do I need to create a new module for it (because the first HTML is the defined entry-point)
or can I create the new HTML just next to the old one ?


8 Jul 2009, 10:09 PM

Can anyone assist with this issue please ?

9 Jul 2009, 6:56 AM
No, you can do this with a single entry point. Eg:

In file1.html you could have:

<div id="foo"/>
And in file2.html have:

<div id="foo2"/>
And in your entry point, in onModuleLoad(), have some logic such as:

if (RootPanel.get("foo") != null) {
// add contents for file1.html to the RootPanel
} else if (RootPanel.get("foo2") != null) {
// add contents for file2.html to the RootPanel
Of course, you can't use div foo in file2.html (or foo2 in file1.html) or you'll have all content on both pages.