On Monday, July 8, 2013 6:38:29 PM UTC+2, Joel wrote: > > > We are using the MVP pattern, and have a page with a selectable list. Each > time an item is selected, we would like the URL to reflect the selection. > Initially, the code used placeController.goTo() whenever an item was > selected. However, we did not expect the activity's start() method to be > called since its the same activity. > > Right now, that code is a bit heavier-weight (reloads the list) as I > believe is expected to be the case with activities. Is there a way to > refresh the URL without the activity being recalled, or is there a > different way we should be going about this? > > Looking more for thoughts on methodology than a quick-fix... or maybe > something is amiss about the start() method being called? >
What Jens' answer is implying is: if your ActivityMapper returns the same Activity instance (same instance, comparable to the previously returned instance with == ) then it won't be stopped/started by the ActivityManager. FilteredActivityMapper and CachingActivityMapper are there to help you set up such a thing without worrying about caching the activity from within your ActivityMapper, but you can also do it yourself by hand. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
