Hi,
On Wed, Jun 11, 2014 at 6:30 PM, msalman <mohammad_sal...@yahoo.com> wrote: > Hi Ernesto, > > Thank you for your quick response. But I think I did not explain the > problem that I am trying to solve. What is happening in my case is that > when I click the IndicatingAjaxButton to start the file download, the > activity indicator (that twirling round thing) appears. But it then > disappears very quickly just when the code starts generating and > downloading > the file. All this while, without the activity indicator, the user does > not > know if any thing is happening and so may click the button again and again. > This is exactly what the articles I sent explain: it seems there is no hook for detecting downloading been triggered/finished. I did not read them but I think they proposed a workaround. http://geekswithblogs.net/GruffCode/archive/2010/10/28/detecting-the-file-download-dialog-in-the-browser.aspx Another possibility is: 1- Generate the file 2- Once it is ready trigger the download. I.e. poll the server to see if generation finished. Then use polling ajax request to trigger download. > The solutions that you have sent me the links to, are for problems relating > to the GUI not being responsive after the file has been downloaded. I do > not have that problem. I just don't want the user to click the button > again > while the file is being downloaded. > > Also, unfortunately other than Wicket and simple html, I do not know much > about other GUI tools including Javascript. So I would appreciate very > much > if you can provide me with a solution that I can easily use in wickets. > > I do not promise anything as I'm rather busy at the moment... but let me see if I can come up with an example. > Again, thanks so much for your response. > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/FileDownload-hides-the-activity-indicator-tp4666181p4666209.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Regards - Ernesto Reinaldo Barreiro