make sure you use ClosingHandler and not CloseHandler...
if a ClosingEvent arises set a message on the event - this will cause
the browser to show a dialog with your message where the user have to
confirm that he wants to leave the page

On 25 Sep., 16:22, Marcelo Sena <[email protected]> wrote:
> Hi, I have a classical situation where the user is trying to navigate
> away from a page while some of his works are not saved. How do I stop
> him from doing that. I tried to use the ClosingHandler, but unlike the
> deprecated closing Listener it does not give me the option to stop the
> event.
> Help :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to