Hi

Thanks for the response. Yes, what you say is very true. However, it
doesn't help me. The problem I've got is that I have a method which is
called just before a tab is closed. If the contents of the tab has
been modified, but not saved, I want to pop up a yes/no/cancel box so
that the user can save, not save or cancel the close option. If they
cancel I need to return false from the original method, otherwise
true. I don't think that can be done asychronously:

public boolean doBeforeClose()
{
    boolean close = true;

    // Show box and reset close.

    return close;
}

Thanks
Paul



On Sat, Apr 25, 2009 at 10:54 PM, Vitali Lovich <vlov...@gmail.com> wrote:
> Why does it have to be synchronous?  Not sure what kind of message box you
> are referring to, but it's fairly trivial to convert a synchronous algorithm
> to an asynchronous one.
>
> // synchronous code
> // message box
> // synchronous code
>
> instead make it
> // synchronous code
> // message box
> // in asynchronous result from message box, continue with synchronous code.
>
> On Sat, Apr 25, 2009 at 4:08 PM, Paul Grenyer <paul.gren...@gmail.com>
> wrote:
>>
>> Hi All
>>
>> I'm using GWT 1.6 and gwt-ext and need a Yes/No/Cancel message box
>> that is NOT asynchronous.
>>
>> Google isn't helping. Can anyone else point me in the right direction,
>> please?
>>
>> Thanks!
>>
>> --
>> Thanks
>> Paul
>>
>> Paul Grenyer
>> e: paul.gren...@gmail.com
>> w: http://www.marauder-consulting.co.uk
>> b: paulgrenyer.blogspot.com
>>
>>
>
>
> >
>



-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to