Early on I found that with GWT, I had to get away from the notion of
loading HTML/CGI/JSP/servlet pages. Unlike a CGI or JSP centric
website with many pages, you're writing a bundled application. Think
instead like you're writing a Swing application (or Mac/Windows/
XWindows application) with the browser as your application window.
Create a container (in GWT, a panel), and stuff it with widgets and/or
other panels. Show the panel. Show multiple panels (like you would
with a Swing layout). Want to change the panels your displaying?
Replace a panel with a new one, or hide the panel and show a different
panel.

I've found the hide/show approach very useful in implementing History.
In turn having a working History system gives me a simple way for
users to access my application from different points:  http://.../myapp#logon,
http://.../myapp#dbadd, http://.../myapp#getfile, etc.

On Jun 25, 6:15 am, Ho Jimmy <[email protected]> wrote:
> Hi,
>
> I would like to use multiple host pages for creating a GWT application.
> Since it is not quite possible to use the same framework for the whole
> application.
>
> For example,
> 1> The Entry module load login widgets according to Main.html.
> 2> After the authentication success, the cookie is sent to the client
> browser.
> 3> A new html file called Profile.html should be the first page to load
> widgets after login.
> As a result, now the Root.get is referring to Profile.html instead of
> Main.html. How can I do this transition?
> Can someone please provide some details like one or two lines of code?
>
> Thanks
> Jimmy

-- 
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