Hi,
1-Replace the download link by an AJAX link. 2-Launch file generation on a background thread. Pass a class to this thread that serves as context fro passing information from generating thread with web threads (keeping a reference to thisi context on the page). 3-Make a progress panel visible + an AJAX timer that pols the server for progress. 4-Once file is generated replace progress panel with a download link (or use trick in [1] to trigger file dowmload) References 1- https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow On Sat, Nov 16, 2013 at 10:29 AM, seyaw <[email protected]> wrote: > 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<File>() > { > 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: [email protected] > For additional commands, e-mail: [email protected] > > -- Regards - Ernesto Reinaldo Barreiro
