GWT detect GAE version changes and reload
My users use my GWT app for an average of 40 minutes at a time, so when I upgrade the version number开发者_如何学Go of the GAE backend, there's a long period of time when the version they're running in their browser doesn't match the version supporting it on the server.
Most functionality is broken, throwing IncompatibleRemoteServiceExceptions. How can I detect these on the client end? I don't see a way to get an error code out of the onFailure method.
When you receive an IncompatibleRemoteServiceException
in onFailure()
you need to prompt the user to reload the page. Spawn a DialogBox (modal & with glass) informing the user that the application is out of date and a button that, when clicked, calls Window.Location.reload()
精彩评论