Hi paul,

I am facing a similar scenario,
If we go ahead with asynchronous call, how will we handle this scenario, how
do we know when the data has been retrieved

Hi ankit,

Please let me know if you find a solution towards this

Thanks in advance

Riyaz

On Thu, Jun 9, 2011 at 1:03 PM, Paul Robinson <[email protected]> wrote:

> It's really not a good idea to stop your user's browser from responding
> while you're making network calls. They will not thank you for it.
>
> Your life with GWT will be *so* much easier if you just embrace
> asynchronous behaviour.
>
> Paul
>
>
> On 09/06/11 07:13, ankit wrote:
>
>> hii to all....im loading data from the server using asynchronous
>> callback. so is there any way that i can stop executing client side
>> execution until i get data from the server. any way to block
>> asynchronous behavior so that i can wait for the data from the
>> server....
>> this is the example....im using like.. and i dont want JVM to execute
>> further till recordSet is not populated..thanx for looking into
>> it..hope u will help me out
>>
>>  Service.loadData(mProcedureName, request, new AsyncCallback<Data>() {
>>
>>             public void onFailure(Throwable ex) {
>>
>> Logger.getLogger(DataServiceImpl.class.getName()).error("Load data
>> failed.", ex);
>>             }
>>
>>             public void onSuccess(Data data) {
>>                 recordSet.setRecords(data);
>>             }
>>         });
>>     }
>>
>>
> --
> 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.
>
>


-- 
Riyaz
9916220381

-- 
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