On Jan 13, 8:22 am, Viliam Durina <[email protected]> wrote: > Do you use DeferredCommand? This way, onSuccess can execute before the > DeferredCommand is executed.
No, I don't use deferred command. > On 13. Jan, 05:22 h., Isaac Truett <[email protected]> wrote: > > Are you sure the responses are being handled concurrently? JS is > > indeed single threaded, so you should be seeing those responses > > handled sequentially, although the order in which the requests will > > return is not guaranteed. Quite sure they're being handled concurrently, don't have any other explanation as to why I get duplicate items in my list. > > Based on your description, I would suggest disabling the button after > > sending the request. In both onSuccess() and onFailure() you can > > re-enable the button. Yeah, but the problem is it's not 1 button, the complete scenario is somewhat more difficult to explain. I'll try to come up with a small testcase. --Mike
-- 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.
