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: [email protected]
For additional commands, e-mail: [email protected]