Questions tagged [gwt-places]

GWT 2.1 introduced a built-in framework for browser history management. The Places and Activities framework allows you to create bookmarkable URLs within your application, thus allowing the browser's back button and bookmarks to work as users expect.

GWT 2.1 introduced a built-in framework for browser history management. The Places and Activities framework allows you to create bookmarkable URLs within your application, thus allowing the browser's back button and bookmarks to work as users expect.

49 questions
21
votes
4 answers

Confusion around the whole GWT MVP vs Activity and Places

After reading a while and watching Google IO videos, I am still confused on how MVP relates to Activity and Places. I found a thread posted a while back --> GWT 2.2 MVP vs. GWT 2.1 Activities-Places "MVP architecture. MVP is the concept, and one of…
Nitish Upreti
  • 6,312
  • 9
  • 50
  • 92
8
votes
2 answers

How To: UiBinder + GWT MVP + multiple independent display areas

I am using GWT MVP and UiBinder to create an app with a DockLayoutPanel. I want the north and south docks to be static, containing buttons and links. I want to have dynamic views in the center and two different areas of the east dock. As these…
Pete
  • 187
  • 3
  • 10
7
votes
2 answers

Getting rid of GWT MVP boilerplate

Following the documentation on places & activities + MVP, for each page I have to create: a place an activity a tokenizer (I have to implement the tokenizing logic) an interface for the presenter (the activity implements this interface) an…
David Frank
  • 5,918
  • 8
  • 28
  • 43
6
votes
2 answers

URL fragment lost as part of SAML token authentication; workaround / standard pattern?

Several web application authentication protocols (like WS-Federation and the SAML protocol, i.e., so-called 'passive' protocols, and apparently also ASP.NET Forms authentication, see this StackOverflow question, and AppEngine, see this GWT bug…
6
votes
2 answers

GWT - Separating role of presenter from activity

What advantages could be gained from divesting the role of presenter from an activity? What are the roles/concerns that could be separated in order to dissect an activity from being a presenter? Why would you want to separate them into two distinct…
Blessed Geek
  • 21,058
  • 23
  • 106
  • 176
6
votes
3 answers

GWT MVP updating Activity state on Place change

What is the best practise to update Activity state on Place change? Imagine you have an activity with view that displays list of categories and list of items in the category. If different category is selected then app goes to new place with category…
Martin Ždila
  • 2,998
  • 3
  • 31
  • 35
5
votes
3 answers

Interpretation of GWT Places/Activities & MVP?

I understand that Places & Activities are separate from MVP. P&A are for managing browser history, and MVP is an architectural pattern. But, obviously, they interleave and overlap in areas, and this question is about how they can work cohesively…
user1768830
5
votes
1 answer

GWT: Granularity of Places and ActivityMappers

I'm finally starting to "get" GWT. At any time, a PlaceChangeEvent can be fired on the app's EventBus like so: History.newItem("token-for-some-new-place"); This adds the event to the bus, whereby a registered ActivityManager scoops it up and…
user1768830
4
votes
3 answers

Place name without a colon (:)?

Still a bit of a GWT noob here but making progress using Activities and Places as described by Google here. I understand that a Place's "URL consists of the Place's simple class name (like "HelloPlace") followed by a colon (:) and the token returned…
Justin
  • 6,031
  • 11
  • 48
  • 82
4
votes
2 answers

What's the use of multiple GWT ActivityManagers and ActivityMappers?

It finally occurred to me that you are supposed to code up an ActivityMapper to parse/inspect the Place subclass that its getActivity(Place) method is passed, and to return the appropriate Activity to present to the user. So this got me thinking: it…
user1768830
4
votes
1 answer

How to implement GWT PlaceHistoryMapper with custom tokens?

I'd like my small GWT app to have all of the following "bookmarkable" Places: http://www.mywebapp.com --> "home page" http://www.mywebapp.com/login --> login screen http://www.mywebapp.com/main --> …
user1768830
3
votes
1 answer

What's the point of CachingActivityMapper?

The CachingActivityMapper will return the same activity instance if asked for the same Place twice or more. However, PlaceController will not fire a PlaceChangeRequestEvent (and ultimately no PlaceChangeEvent) if I was to goTo(...) a place that…
tur
  • 328
  • 1
  • 8
3
votes
6 answers

Why is GWT app not displaying?

Update: I am about to add a bounty to this question. I added the entire project's source code to GitHub here: https://github.com/doctrang/gwt-activities-places-mvp-example I decided to rename my SimpleModule to WebModule; so, whereas in all my…
user1768830
3
votes
1 answer

How to get rid of PlaceHistoryMapper

Are there any way not to define all Places in the PlaceHistoryMapper? At this moment I am using Generator in order to generate list of all places automatically, but I am not sure that this is a correct way. public class AppPlaceHistoryMapper extends…
Slam
  • 177
  • 1
  • 8
3
votes
1 answer

Where to put state that's needed by different GWT activities?

I'm currently working on a GWT application and I'm still a little fuzzy on how it all fits together (the joy of having to make changes without first coming to an understanding of the whole framework, although that might be difficult anyway). We have…
Joey
  • 344,408
  • 85
  • 689
  • 683
1
2 3 4