How to show a message while waiting on a RPC service request (not RequestFactory request)
I'm looking for an approach on how to show a "Loading" message/image
while waiting for the client to finish an RPC service request that's
taking a few moments to complete. I'm not looking for an approach on
startup. I've got the gist of that more or less. This question is
for how to do it once the app is running.
I've seen the approach used in the Spring Roo generated code whereby a
RequestEvent is fired after a RequestFactory request runs longer than
250 ms. This approach makes use of a
com.google.gwt.requestfactory.shared.RequestTransport, which only
works for RequestFactory.
Is there a similar approach to use when using an RPC Service?
The following blog post offers up an approach for a view and
presenter, but doesn't illustrate how one puts the hooks in place to
get the event to fire.
http://turbomanage.wordpress.com/2009/10/22/how-to-show-a-loading-pop-up-in-your-gwt-app/
Presumbably one could manually fire the AppLoadingEvent each time one
makes a call to a service, and in the callbacks when the request
completes, but I was hoping there's something more akin to the
RequestTransport solution for RPC Service calls.
Thanks,
Skip Walker
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home