Re: How to stall GWT app while it is writing file in background? Timer object??

2012-02-01 Thread Thad
See http://groups.google.com/group/google-web-toolkit/browse_frm/thread/2bc7750aa72470f5/9afa4441d4fcceb0 In the 3rd message, I describe how I do something similar using a hidden frame as my download target. On Feb 1, 3:30 pm, Joshua Carey wrote: > Hi Mark, > > Your suggestion worked perfectly,

Re: How to stall GWT app while it is writing file in background? Timer object??

2012-02-01 Thread Joshua Carey
Hi Mark, Your suggestion worked perfectly, except for one small thing. For some reason moving the Window.open from the button click event, to the onSuccess method, now creates a "pop up" window, instead of a new tab.. Its weird because they are both being executed within the presenter class so i

Re: How to stall GWT app while it is writing file in background? Timer object??

2012-02-01 Thread Joshua Carey
Actually, I have that exact setup now, the only difference is in my onSuccess method I really wasn't doing anything. So in the client code I showed you above, I should take the logic regading the window.open and put it in the onSuccess method and that should avoid prematurely loading the window?

Re: How to stall GWT app while it is writing file in background? Timer object??

2012-02-01 Thread Mark
The whole idea between AJAX is asynchronous operation, the client continues working while the server does work. There's no telling how long the server will take to do its work so a Timer is not the best option. Since you want the client to react when the server finishes you need to pass the workl

How to stall GWT app while it is writing file in background? Timer object??

2012-02-01 Thread Joshua Carey
I have a gwt application that calls a gwt servlet (from my presenter class) to write a PDF file to disk, then in my presenter class I display the newly created PDF using Window.open("my.pdf");. The problem is that the window.open executes before the pdf is finished writing to disk. I would li