Thanks for your reply i solved by using the below snippet code
History.newItem("x");
History.addValueChangeHandler(new ValueChangeHandler<String>() {
@Override
public void onValueChange(ValueChangeEvent<String> event) {
String historyToken = event.getValue();
if (!historyToken.equals("X"))
History.newItem("X");
}
});
On Friday, July 11, 2014 2:48:29 PM UTC+5:30, Mohammed Sameen wrote:
>
> Hi!
>
> My application does not need have any history
> support.
> The problem is that when I type something wrong in textbox,its shows
> warning in dialogbox and accidentally lose focus and
> then press Backspace key to delete a character from textbox,browser
> performs application to exit and the whole application is unloaded losing
> all the
> data.
>
> How can I disable this?Please give me suggestion.
>
> Thanks!
>
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.