When using Activities and Places to manage application navigation events I'd like to be able to override the default behavior of the * com.google.gwt.place.shared.PlaceController*. When an activity responds to the mayStop() call returning a warning message string the * com.google.gwt.place.shared.PlaceController.DefaultDelegate* uses the Window.confirm(message) call to perform a blocking call to the window's dialog.
I'd like to be able to modify the behavior by providing my own concrete implementation of Delegate that operates on a callback based MessageBox to display the message to the user. The problem here is that I need to subclass the PlaceController to override the goTo(newPlace) method to use a callback based call into the delegate.confirm(warning) (which ideally would become delegate.confirm(warning, callback)). Unfortunately PlaceController has its Delegate declared as private and doesn't expose a getDelegate() method for it. Anyone have ideas of how to workaround this? Thanks -- 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/-/V0_9K_k0Y-YJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.