Refresh page after downloading file

2009-05-26 Thread Humberto N. Castejon Martinez
Hi!

I have a page with several links to download files. After one file is
downloaded I would like the corresponding link to dissapear from the page.
In principle this would be as simple as refreshing the page once a link has
been clicked. However, I am not sure how to do this, since using
setResponsePage() in the link's onClick() method does not give the desired
result (instead of the file being downloaded it is the html file of the page
set as response that is downloaded). I would really appreciate if you could
help me with this. Thanks a lot.

Cheers,
Humberto


ResourceLink and ResponsePage

2009-05-26 Thread Humberto N. Castejon Martinez
Hi!

I have a web page that shows a list of items, each of them with an
associated link (a ResourceLink) to download a file. I would like the web
page to be refreshed once a file has been downloaded (I want the associted
item to be removed from the list). I tried overriding the onClick() method
of my ResourceLink and setting the response page to the current page, but
then the html file of the web page is downloaded and not the original file.
Is there a way to achieve what I want? Thanks!

Cheers,
Humberto