We need to detect the Refresh event (f5) / reload of the web application. Is there an event in GWT that can detect this?
thanks, mj
Add a Window Closing Handler:
HandlerRegistration registration = Window.addClosingHandler(new ClosingHandler() {
void onWindowClosing(ClosingEvent event) {
// call the server, or whatever
}
});
EDIT
The HandlerRegistration
is used to deregister the Handler
if you don't need it anymore.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With