Hi guys,
I am wondering what the main concept is to build a major website with GWT? I
mean if there are a lot of html files, how do you build it or get control of
the widgets of the them? It should be a natural way that each html file is
connected with an entrypoint where the you build the final site or get
control of widgets with wrap method. However if you do this in one module,
than each entrypoint is being loaded when a new html file of the module is
shown. As a beginner a made a helper class that implements EntryPoint and
quits when not the corresponding page is being loaded:

public abstract class MyEntryPoint implements EntryPoint {
    public void onModuleLoad() {
        String className = getClass().getName();

if(Window.Location.getPath().endsWith(className.substring(className.lastIndexOf('.')+1)+".html")){
            loadPage();
        }
    }

    protected abstract void loadPage();
}

Of course this could be done by making as many modules as many html files
you have. Is there any other solution?

Thanks,
Csaba

--~--~---------~--~----~------------~-------~--~----~
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-Web-Toolkit@googlegroups.com
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