You need to somehow notify your cached data that it has changed; there are many ways to do that depending on how you architected things.
You could have the cached list in a "holder" class and simply call a method on it from your update activity.
Or you could send an event in the event bus for more decoupling.
Or you could mediate all data access through a class that handles the caching and could update the cached list in-place.
And when your list activity starts, either unconditionnally update your view, or check whether the list has changed before doing so.
--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment