tin,

you might consider using an RPC wrapper... check this library out:

http://code.google.com/p/gwt-dispatch/

It takes one approach to this. Another library

http://code.google.com/p/gwt-command-pattern/

which I wrote, takes a different approach. Note that I have since
abandoned my project due to time constraints. However, I think it
might still be useful to you as an example.

On Dec 3, 2:19 am, tin <[email protected]> wrote:
> I guess I could have a decorator class for every async service
> interface I use but that seems incredibly tedious and repetitive. I
> have quite a few RPC services already and will have many more as the
> project grows. I guess the other option is to try to generate
> decorator classes via deferred binding. This seems like a pretty big
> deal though. Are there existing libraries which would allow me to do
> this?
>
> On Dec 3, 9:34 pm, Cristiano <[email protected]> wrote:
>
>
>
> > Hi, interesting question and answer,
> > could please Mohamed make a GWT example of what you mean?
>
> > Thanks!
>
> > On 3 Dic, 05:54, Mohamed Mansour <[email protected]> wrote:
>
> > > When I mean decorator, I meant to follow the decorator 
> > > pattern:http://en.wikipedia.org/wiki/Decorator_pattern
>
> > > On Dec 2, 11:53 pm, Mohamed Mansour <[email protected]> wrote:
>
> > > > Why wont you implement a decorator interface that will decorate your
> > > > RPC calls? That way you can always hide/show your spinner icon for
> > > > each call without affecting your RPC code.
>
> > > > On Dec 2, 9:39 pm, tin <[email protected]> wrote:
>
> > > > > Hi everyone,
>
> > > > > I have a GWT application that uses RPC calls heavily. I would like to
> > > > > display a spinner icon whenever a call is in progress. It is easy
> > > > > enough to display the icon, but I want to do it seamlessly in one
> > > > > place so I don't have to explicitly hide and show the icon for each
> > > > > call.
>
> > > > > I guess I am looking for something similar to jQuery's ajaxStart and
> > > > > ajaxStop events.
>
> > > > > Has anyone done something like this before?
>
> > > > > Cheers,
>
> > > > > Tin

--

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