how to handle cases where a user Repeatedly presses browser Refresh button in the middle of server call ?

2011-01-29 Thread zixzigma
Hello Everyone, do you have any suggestion on how we can handle situations where a user repeatedly presses browser Refresh button during a server call ? (F5) I am displaying data in a CellTable which uses RequestFactory to retrieve data. if I press F5, couple of times during call to the server,

Re: how to handle cases where a user Repeatedly presses browser Refresh button in the middle of server call ?

2011-01-30 Thread Thomas Broyer
There are 2 strategies (that can be combined): - track ongoing async calls, listen to Window.ClosingEvent and ask (ClosingEvent#setMessage) the user if he really wants to leave (you can't tell refreshes from window/tab closing from other kind of navigations), in case there are ongoi