Re: Multipages with GTW

56 views
Skip to first unread message

Natanael Maldonado

unread,
Sep 3, 2012, 6:50:51 PM9/3/12
to google-we...@googlegroups.com
Check this https://community.jboss.org/thread/199409?_sscc=t

2012/8/30 4x4is18 <mar...@eljeb.de>
Hey,
we want to use multiple tabs in a GWT Project. Is there a way to implement this? We want use ClientStorage for the session tracking. We need more than one HTML page because we have a user- /gamemanagement, and for every new game thats started we need a new tab. The user can start more than one game. TabPanel is maybe a alternative.

Sorry for my bad english :(

Greetings 4x4

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/LqpnipJCxMkJ.
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.



--



Atte:
Natanael Maldonado

David

unread,
Sep 4, 2012, 7:13:40 AM9/4/12
to google-we...@googlegroups.com

TabPanel or your own styled Anchors usually do the job.  If your individual tabs need to be represented by urls ( i.e to bookmark them) then you may want to consider one of the MVP techniques to capture a url change.  In Gwt this is generally done by using the same url ( so as not to incur a new page request from the web server) and adding a "#" token at the end followed by a place identifier. 
  For example  http://server/myentrypoint#tab1
                      http://server/myentrypoint#tab2

However if you must go back to the server for each page :
                      http://server/tab1
                      http://server/tab2

You can still configure gwt to bootstrap to the same entry point for multiple pages ( again look at mvp examples with code splitting).     The downside here would be that you'd lose client state on each page request.   However a lean entry point with proper code splitting should ensure a fast load of the page.   This is also a great way to introduce gwt to a legacy j2ee servlet application.
Reply all
Reply to author
Forward
0 new messages