GWT + Server Paths

20 views
Skip to first unread message

Markus

unread,
Sep 20, 2011, 9:22:11 AM9/20/11
to Google Web Toolkit
Hello!

In normal Webapps the Server Paths show in which directory the user
is.

Example:

http://www.myDomain.de/news/ <= In the news
http://www.myDomain.de/shop/ <= In the shop

GWT is just one call... So how can I show the Shops on URL /shop/ and
how the News on /news/?

Currently I just add a <div id="shop"></div> and check on the
EntryPoint if a div called Shop exists.. but I think that is not a
good solution.

Thanks for help!

Rutger van der Eijk

unread,
Sep 20, 2011, 9:35:12 AM9/20/11
to google-we...@googlegroups.com
Hi Markus,

I think what you are looking for is implemented with GWT places and the history mechanism.



Good luck.

Rutger

Jens

unread,
Sep 20, 2011, 9:36:58 AM9/20/11
to google-we...@googlegroups.com
You can use GWT Places & Activities. Using the default Place implementation you would end up having something like: 

http://www.myDomain.de/#NewsPlace:list (would display a list of news)

-- J.

Alexander Orlov

unread,
Sep 20, 2011, 9:51:52 AM9/20/11
to google-we...@googlegroups.com
Also using a /shop, /news pattern requires the browser to reload the page, each time you navigate from one path to another. With GWT you don't need to reload the page at all. Using hashtags, like already mentioned, enables you to implement a reload-less navigation structure: /#shop, /#news
Reply all
Reply to author
Forward
0 new messages