RE: DownloadLink and ProgressBar
Yes Paul, getting the progress of the file generation is one of my challenge right now. The file generation is, in my case is not linear. For example, the time it takes for different procedures is depend on the project size. Currently, I just make a rough estimation so that the user at least can see the file generation is in progress. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DownloadLink-and-ProgressBar-tp4662451p4662504.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
Re: DownloadLink and ProgressBar
Hi Ernesto, A working example might be helpful. Thank you -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DownloadLink-and-ProgressBar-tp4662451p4662485.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
Re: DownloadLink and ProgressBar
Dear Ernesto Thank you very much for your help. Your comments were very helpful. I solve the problem as you suggested with little modification 1. follow the reference you mention [1] 2. add AjaxLink that will generate a file add(new AjaxLink("download") { @Override public void onClick(final AjaxRequestTarget target) { bar.start(target); new Thread() { public void run() { generateFile }. 3. add a progressbar (from wicketstuff) and on its onFinsh method, trigger the file download Progress = new ProgressBar("progress", new ProgressionModel() { protected Progression getProgression() { return new Progression(progress); } }) { protected void onFinished(AjaxRequestTarget target) { download.initiate(target, fileName); } progress.add(download) add(progress) My only problem now is I have to guess the progress of file genaration , to be dispalyed on the progress bar thank you very much -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DownloadLink-and-ProgressBar-tp4662451p4662463.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
Re: DownloadLink and ProgressBar
Thank you Ernesto for your prompt response. 1. is okay. Then for 2. I suppose I start the thread from the onclick method of the ajax link. Can you explain a bit how to start the file genaration with a thread? and for 3. how to pol the server for the progress? Thank you very much -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DownloadLink-and-ProgressBar-tp4662451p4662460.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
DownloadLink and ProgressBar
Hi All, I have a wicket DownloadLink where I generate file dynamically and download it. It works. The process of dynamic File generation might take some time and like to show ProgressBar which show how much the generation has progressed. How Can I do that. I am using wicket 1.5.8 Thank you very much. add(new DownloadLink("export", new LoadableDetachableModel() { private static final long serialVersionUID = 840863954694163375L; @Override protected File load() { File exportTempDir = getGeneratedFile(); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DownloadLink-and-ProgressBar-tp4662451.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
Modal window extending panel do not expand
Hi all, I have couple of modal windows. Modals that extend Page can grow/Shrink with the mouse button along side the parent page. Those extending Panel do not't expand (while the parent window can) Thanks for the hint -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modal-window-extending-panel-do-not-expand-tp4658710.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
Wicketstuff nightly snapshot
Hi all Where shall I get the nightly snapshot for wicketstuff. I make a pull-request and got the merge in github. I need the latest update to include in my project (through maven dependency) thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicketstuff-nightly-snapshot-tp4658234.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
Re: Modal window and height
Just in case someone else still face same problem. Clear your cache from your browser. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modal-window-and-height-tp1861453p4657666.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