I've been testing my app with GWT 2.6rc4 today. I ran into an issue where I 
wasn't being prompted before navigating away from a presenter who returned 
non-null in mayStop(). This should be opening a native confirm dialog and 
asking the user OK/CANCEL. It works fine in GWT 2.5.1, but in 2.6rc4 it 
always returns false without ever prompting the user. I switched back to 
2.5.1 without changing any code and it works as expected.

I couldn't find anywhere on this group or the main GWT Google Group where 
changes to Window.confirm() were being discussed.

The following code hasn't changed in a while. Looking through the recent 
history of the Window class, nothing really stands out that I could see.

  public static native boolean confirm(String msg) /*-{
    return $wnd.confirm(msg);
  }-*/;

My code isn't really doing anything complicated, it is basically the 
following:

boolean discardChanges = Window.confirm(myPresenter.mayStop());

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors
--- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to