AsyncCallback timeout

109 views
Skip to first unread message

Néstor Boscán

unread,
Jun 23, 2011, 4:15:53 PM6/23/11
to google-we...@googlegroups.com
Hi

Is there a way to set the Async Callback timeout. When there is no internet connection on the client side the application is left waiting for a long time.

Regards,

Néstor Boscán

Juan Pablo Gardella

unread,
Jun 24, 2011, 8:10:07 AM6/24/11
to google-we...@googlegroups.com
Try this http://code.google.com/p/kiyaa/

2011/6/23 Néstor Boscán <nest...@gmail.com>
--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Thomas Broyer

unread,
Jun 24, 2011, 8:41:40 AM6/24/11
to google-we...@googlegroups.com
You can "customize" the request by setting an RpcRequestBuilder on your service stub: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/rpc/RpcRequestBuilder.html (cast your service stub to ServideDefTarget and call setRpcRequestBuilder with your own subclass, that can then call setTimeoutMillis on the RequestBuilder: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/http/client/RequestBuilder.html#setTimeoutMillis(int) )
Reply all
Reply to author
Forward
0 new messages