On Tuesday, January 8, 2013 6:16:54 PM UTC+1, DrG wrote: > > Is there an elegant solution to handle when a new release is deployed > while you are in the GWT app? E.g. we want the application to notice a new > version of itself and automatically do a full page refresh? > > Ideas? >
The way Google apps (Groups and Reader at least, and I believe GMail too) work is they detect the new version the next time they talk to the server (IncompatibleRemoteServiceException for GWT-RPC for instance, which is used here in Groups, or other means) and display a notification in the app containing a "reload" link. Wrt UX, I would consider automatically reloading the app a bad practice. It could be done in browsers that let you detect when the app is in the background, but you'd still have to be sure that I don't have any unsaved data and for best UX restore the exact same screen: same scrolling position, same open/closed items, same focused widget and element in list, etc. In the end, just let the user reload, it way much easier and he knows there'll be side effects. -- 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/-/opRGpmIAa20J. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
