Question

GWT Activities/Places/MVP concepts were discussed quite a lot here, but I haven't found a good example of how to apply those concepts to a multi dialog portal-like GWT application.

I'm working on a GWT application that should have multiple independent widgets. These widgets are implemented based on PopupPanel. Each widget can be moved around on the screen and should be independent of others. The original intention was to use Activities and Places approach. Each widget would be an activity, all activities would be managed by the same ActivityMapper and ActivityManager. But in that case whenever new dialog is opened from the menu, new Place is created and mayStop() is called for the currently opened dialog. Having one ActivityMapper and ActivityManager per widget type is not going to work either since there could be several widgets of the same type on the screen.

How should architecture of a GWT application look like in this case? Any suggestions?

Was it helpful?

Solution

A place is like a URL, it doesn't seem to fit your needs, unless you build a super-place containing the accumulated state for all widgets.

You absolutely need an ActivityMapper and ActivityManager per "widget" (or not use activities altogether)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top