You can't, but if I understand correctly what your exact use case is, there 
are ways to solve it.

As I understand it, you don't want your other activities to "re-start". The 
way to do it is to return the very same activity instance from your 
ActivityMapper as the last time it was called.

Now, there are some "tools" that make it easier, or at least help maintain a 
high level of decoupling and separation of concerns. Those tools are 
FilteredActivityMapper and CachingActivityMapper, and they act as 
filters/proxies in front of your own ActivityMapper.
CachingActivityMapper will keep a reference on the last returned activity 
and place, and compare the new place with the previous one. If they are 
equal (using the equals() method, so it's up to you to define which places 
are equal to each others), then it won't called your ActivityMapper but 
return the previously returned Activity.
FilteredActivityMapper uses a filter to translate/map one place to another. 
It works best when used in front of the CachingActivityMapper, so that the 
FilteredActivityMapper can map the current place to another place that has 
better chances to compare equal to the previous one.
Spring Roo generated apps, and the Expenses sample, use them in their 
"master" (in master/detail view pattern): the FilteredActivityMapper will 
map an "object instance" place to a "list of that object type" place (e.g. 
expense report to list of expense reports). That way, when you navigate 
between "object instances" (e.g. expense reports), the 
FilteredActivityMapper will map each place to the same "list of objects" 
(e.g. list of reports) place (not the same instance, but equivalent ones), 
so the CachingActivityMapper will return the "list of objects" activity; 
always the same instance, so it won't be re-started.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to