Questions tagged [gwt-activities]

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

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

using GIN in GWT Activities

Each of my Activities needs a correspoding singleton View implementation. What's the best strategy to inject them into activities? constructor injection Activity constructor is called from an ActivityMapper's getActivity(). The ctor already has a…
kosmičák
  • 1,043
  • 1
  • 17
  • 41
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
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
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

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
2
votes
1 answer

How meaningfull is Activity.mayStop()?

I am wondering if there is any non trivial use case for the com.google.gwt.activity.shared.Activity#mayStop method. The com.google.gwt.place.shared.PlaceController.Delegate#confirm is a blocking one, so you cannot use a different Delegate, that is…
Peter
  • 4,752
  • 2
  • 20
  • 32
2
votes
1 answer

What is the EventBus passed into the AbstractActivity.start in GWT intended to be used for?

Before using the activities framework I would typically have one Global/Singleton instance of the GWT EventBus. Now I noticed the activity class passes an instance into my activities. Is this eventbus intended to do cross-application client-side…
benstpierre
  • 32,833
  • 51
  • 177
  • 288
2
votes
2 answers

GWT Places/Activities - what should be used for navigation?

I have a GWT Places/Activities web application. I use Anchor's click event to move user in a new "place", so there's no way user can open any "link" in a new window or tab. The question is - how do I make all these links real?
Andrey Agibalov
  • 7,624
  • 8
  • 66
  • 111
2
votes
0 answers

gwtupload conflict with Activities and places framework

I have a GWT application which has an upload feature, and it works fine with gwtupload However, it doesn't work after I setup Activities and places framework. It gives the following submit error: Unable to auto submit the form, it seems your…
Askar
  • 544
  • 1
  • 6
  • 17
1
2 3 4