He Feroz,
Just another idea to stop-and-wait which I use:
I use events everywhere across my app to control what should happen,
like app-init, start-..., etc..
The events are catched by pieces of code that can indicate in the
received event, that it must wait further dispatching any event (=
sto
I am using this technique to fulfill required functionality. I am calling
method which has other functionality and calling that method from onComplete
method.
Thanks for support
On Tue, Aug 26, 2008 at 1:12 AM, alex.d <[EMAIL PROTECTED]> wrote:
>
> By:
>
> HTTPRequest.asyncGet("AnyPage.jsp", ne
public void doSomething(String href)
{
/*
* At this point you program is trolling along doing things that don't
* rely on the response here (like creating the page structure), working
* out what the href is going to be etc.
*
* Then you want to request the data
*
* You would be bette
Feroz,
It sounds to me like you are... "out of beer". Search this list for
that string, and read the first item for your fortune.
Walden
On Aug 26, 1:36 am, "Feroz Gul Pathan" <[EMAIL PROTECTED]> wrote:
> Thanks for reply
> I used HTTPRequest.asyncGet ... method to make a request. After making
By:
HTTPRequest.asyncGet("AnyPage.jsp", new ResponseTextHandler()
{
public void onCompletion(String responseText) {
final JSONValue jsonValue = JSONParser.parse(responseText);
ToDoAfterTheResponsIsOverFunction();
}
});
The ToDoAfterTheResponsIsOverFunction() will be called AFTER the
Thanks for reply
I used HTTPRequest.asyncGet ... method to make a request. After making a
call (request) this will proceed to next operation and don't wait for the
response. How we can block operation until response will be completed and
incompletion(String responseText) method will be executed suc
Whatever you are running after the request, run it after the response.
I.e. make the request the last thing you do when processing some input or
other, and then in the onComplete, carry on with whatever it is you want to
do.
2008/8/25 feroz <[EMAIL PROTECTED]>
>
> Hi
>
> How we can stop control
Hi
How we can stop control until we receive complete response in GWT.
Control will execute next source before the completion of response.
how we can stop control until response will be processed completely.
thanks
--~--~-~--~~~---~--~~
You received this message be