Wednesday, January 4, 2012

Re: Basic question on activity and places

No, but you can store the last activity you returned; this is exactly what the CachingActivityMapper does: it'll only call your (wrapped) ActivityMapper if the Place is different than the previous one, and returned the "cached" activity otherwise.
Put it behind a FilteredActivityMapper so you can turn different Places to other ones that could compare equal (e.g. turn any EmailDetailsPlace into a EmailListPlace, and every PersonDetailsPlace into a PersonListPlace; so that the CachingActivityMapper can return the same EmailListActivity or PersonListActivity ("master") instance whereas you're navigating from mail to mail or person to person ("detail to detail")).

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

No comments:

Post a Comment