Hi, I have no way to test, but have you tried using a DeferredCommand? Deferred commands should run after the current event has finished processing. So hopefully everything is idle at this time, so maybe no race condition can happen?
Mike. On Aug 27, 7:44 am, Tim Martens <timmy.mart...@gmail.com> wrote: > It boils down to a race condition between the content being updated > and keystrokes in the TextBox. If they happen at the same time, > rendering freezes. The only way I can prevent this from happening is > to block the javascript event loop while I build/update the content. > Which is obviously not a solution. This is a show stopper for us > using GWT on the IPod Touch/IPhone. > > On Aug 25, 11:27 am, Tim Martens <timmy.mart...@gmail.com> wrote: > > > > > I'm working on a small GWT web app to run on my IPod Touch (version: > > 2.2.1 (5H11)). The problem is that rendering of the page hangs when I > > type into a TextBox and update a Label at the same time. Below is > > some sample code that reproduces the issue: > > > public class IPodKillTest extends VerticalPanel implements > > KeyUpHandler > > { > > private Label label = new Label("0"); > > private TextBox box = new TextBox(); > > > public IPhoneKillTest() > > { > > box.addKeyUpHandler(this); > > this.add(box); > > this.add(label); > > } > > > public void onKeyUp(KeyUpEvent event) > > { > > label.setText(box.getText()); > > } > > > } > > > When I entered text using the IPod's keyboard fast enough, the whole > > page goes white and I have to reload the page. Am I doing something > > wrong? Is there anything I can do to work around this issue? Any > > help is appreciated. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---