We need to define an update event (f5) / web application reload. Is there an event in GWT that can detect this?
thanks MJ
Add a window close handler :
HandlerRegistration registration = Window.addClosingHandler(new ClosingHandler() { void onWindowClosing(ClosingEvent event) { // call the server, or whatever } });
EDIT
HandlerRegistration used to unregister Handler if you no longer need it.
HandlerRegistration
Handler
Source: https://habr.com/ru/post/890599/More articles:Javascript warning messages in an infinite loop - javascriptThe contents of the settings button via styles - imageHow to fix incorrect numbers caused by integer overflow? - javaWhat method / function is called during navigation PivotItem WP7 - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/890598/is-it-possible-to-add-patch-sets-to-a-gerrit-review-without-ammendingsquashing-commits&usg=ALkJrhitdYt9Z1aZ9Dn4wqYwFB7nI_qlswNUnit Attributes - c #Flex UI User Lifecycle - flexExecuting various arguments of a C ++ template - c ++Abstract - Reading element value during assembly - javaStop saving 'this' in a temporary variable - javascriptAll Articles