Async Advice

2013-04-18 Thread Tim Hill
Hi there, I am somewhat of a GWT novice and I am attempting to create my first application and I would appreciate if any wise old sages would be able to offer some guidance... As part of this application I want to offer offline functionality. My thoughts on how this will work are as follows:

Re: Async Advice

2013-04-18 Thread Jens
As its a mobile app you should always think about how to reduce server requests by sending the server more information at once. Less requests = less latency in using your app. For example the above 4 steps you have described can be done with a single request: Request: Client logs in: Client

Re: Async Advice

2013-04-18 Thread Tim Hill
Hi Jens, Thanks for your input - much appreciated! I had actually come to the same conclusion after posting this when I was thinking about alternative solutions to the issue. Regarding accessing results of a callback elsewhere in the application (if required), what is the best way to do this?

Re: Async Advice

2013-04-18 Thread Jens
Regarding accessing results of a callback elsewhere in the application (if required), what is the best way to do this? Somewhat depends on the concrete case. If its very general data that multiple independent components are interested in, you could publish that data on an app global