You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Edgar Merino <do...@gmail.com> on 2009/01/07 12:12:58 UTC

File download

Hello,

    How can I allow a user to download a file from a stream? for example 
an xls that's generated when the user clicks a "download" button? where 
should I place the file to be downloaded?

Thanks in advance,
Edgar Merino

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: File download

Posted by Piller Sébastien <pi...@hmcrecord.ch>.
If the file exists on the server's HDD, you can use DownloadLink.

Else, if you need to generate it on the fly, have a look at 
RequestCycle#setRequestTarget

Edgar Merino a écrit :
> Hello,
>
>    How can I allow a user to download a file from a stream? for 
> example an xls that's generated when the user clicks a "download" 
> button? where should I place the file to be downloaded?
>
> Thanks in advance,
> Edgar Merino
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org