Wednesday, December 19, 2012

Re: Equivalent to javascript confirmdialog ind GWT



On Wednesday, December 19, 2012 8:43:36 AM UTC+1, RyanZA wrote:
Hey

The 'proper' way to do the confirm dialog is to use the Activies and Places framework in GWT.

Activities' mayStop relies on PlaceChangeRequestEvent. PlaceChangeRequestEvent is dispatched both when navigating within the app (which the OP didn't ask) and when unloading, in which case it relies on Window.addClosingHandler.
So the 'proper' way really is to use Window.addClosingHandler.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cYVpmZ_1x44J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment