See http://code.google.com/p/google-web-toolkit/issues/detail?id=6228

On Wednesday, November 7, 2012 2:41:59 PM UTC+1, Jared Olhoft wrote:
>
> 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/-/01tCu_hbYBgJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to