Friday, June 25, 2010

Re: Use multiple html host pages

Hi Stefan,
 
Thank you very much for your reply. I want to make my question clear and see if someone here has any other suggestions.
 
We have to specify the location on the page to put the widget. So, we need a html to define a layout. However, we may want to have different layouts throughout the application to organize different functions.
 
So, other than changing the host page to another html file, what can I do? Please provide a few lines of simple code if you can.
 
Thanks
Jimmy
 

 
2010/6/25 Stefan Bachert <stefanbachert@yahoo.de>
Hi Jimmy,

I am still not convinced that you need multiple page. You may consider
Code splitting
(the GWT.runAsync capability)

http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html

However, if you still decide to work with multiple page, you can call
any other page with

Window.Location.replace (URL);

Stefan Bachert
http://gwtworld.de


On Jun 25, 12:15 pm, Ho Jimmy <jimmyyl...@gmail.com> 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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


--
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 google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment