OK, I have not used RpcRequestBuilder yet and only used RequestBuilder
to alter the target of the request.

How exactly would you use RpcRequestBuilder to hide the panel? And
also from what I understood RpcRequestBuilder has nothing to do with
actually sending the request so displaying a panel on creation of the
request is kind of a short moment too early.

I think I'd stick to a combination of a subclass of RequestBuilder
where in send() the panel is shown and an implicitly assigned custom
abstract AsyncCallBack implementation where onSuccess()/onFailure
methods hide the panel and delegate the onSuccess()/onFailure() to a
subclass.

This of course depends on two things:
1) usage of return type in async service interface
2) possibility to use a subclass of RequestBuilder in async service
interface (not sure about that but I might give it a try)

Andreas

On 3 Jul., 23:27, Thomas Broyer <[email protected]> wrote:
> On 3 juil, 21:45, andreas <[email protected]> wrote:
>
> > This sounds really great Thomas, haven't tried that yet.
>
> > Can this be done by subclassing RequestBuilder? And can I actually
> > really use my subclass of RequestBuilder as return type in
> > RemoteService methods? Would make me love the ability to use this
> > "return" feature of GWT RPC even more!
>
> It's nothing to do with the return type of methods in your Async
> interface. I'm talking about RpcRequestBuilder, not 
> RequestBuilder:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...
>
> (and yes, it allows you to use your subclass of RequestBuilder; but
> IMO you'd rather show the popup in RpcRequestBuilder#doFinish (or
> maybe even earlier, such as in doCreate()), and wrap the
> RequestCallback in doSetCallback; but if you already have a
> RequestBuilder-subclass, then just return it from doCreate)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
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