P.S.
To replicate this just open any page, say Google, in Firefox and than
go directly to your program. Your program will become the second in
the browser's history. Then just press "Back" browser button.

On 18 дек, 10:59, Andrey <[email protected]> wrote:
> Hello!
>
> Yes, I just added:
>
> Window.addWindowClosingHandler(new ClosingHandler() {
>                         @Override
>                         public void onWindowClosing(ClosingEvent event) {
>                                 event.setMessage("My program");
>                         }
>                 });
>
> as Ian Bambury advised.
> That solves the problem and it seems to be necessary for most of the
> GWT applications as it is easy to:
> 1. press backspace when focus is lost from the input field;
> 2. press back button on the mouse if you have one.
>
> On 15 дек, 08:32, Joe Cole <[email protected]> wrote:
>
> > Hi Andrey,
>
> > Did you ever resolve this? We have had reports of people losing data
> > in this way but have never been able to replicate it.
>
> > On Dec 13, 2:35 am, Andrey <[email protected]> wrote:
>
> > > Hello!
>
> > > My application is desktop-like, so it does not need any history
> > > support.
> > > The problem is that when I edit a form and accidentally lose focus and
> > > then press Backspace key to delete a character browser performs
> > > history.back() and the whole application is unloaded losing all the
> > > data.
>
> > > How can I disable this?
>
> > > Thanks!

--

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