Ugh! Looks like this was a false alarm.

I went back through again to verify that 2.6 was configured correctly and 
to reproduce this again, but this time is worked fine! The only difference 
appears to be that I referenced a non-existent Gin 2.1.2 in my WEB-INF/lib 
when the issues occurred. Putting that into place and rebuilding everything 
appears to have solved this, somehow. 

I haven't been able to get Gin 2.1.2 to work with GWT 2.5.1 so I've been 
swapping between 2.1.1 and 2.1.2 while testing the different SDK versions.


On Thursday, January 16, 2014 7:24:33 PM UTC-5, Michael Prentice wrote:
>
> 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 google-web-toolkit-contributors+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to