You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Milan Křápek <He...@seznam.cz> on 2008/10/10 11:50:44 UTC

Reloading page after sending file

Hi,
  I have (as usually ) some problem. :o)
  In my application I need to allow the users to download some stored files. But this files should not be acessible for everyone so I cannot place them to some web server.  I resolve this by creating new wicket page, that just control if the user is allowed to download the file and send the file as a stream to web browser.
  The problem is that on the main page I display the files as links generated by ListView so they are links provided by javascript. After somebody click on the link. My application sends to the browser a file and user can it open or store to disk. This works fine. The problem is when the user try to download another file. Because the links are disabled after the first download. And the page must be reloaded to get the links available.
  So what I need?   thing the reason of my problem is this. After user click on the link for downloading file, he is redirected to the page that send him/her stream of data. And I need that after the stream ends. The user will be automaticaly redirected to the parent (main) page. But I did not see any way how to do it.

Any advices or ideas??
I will be greatefull  for anything.

Have a nice day

Milan

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


Re: Reloading page after sending file

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
I mean make the links spawn popups instead, and in the popup you 
download the file... Theres some popup settings and popup link or 
similar somewhere, cant remember the exact name..

Pablo Scagno wrote:
> Nino, can you explain me how you do this?
>
> " The problem is that on the main page I display the files as links 
> generated by ListView so they are links provided by javascript. After 
> somebody click on the link. My application sends to the browser a file 
> and user can it open or store to disk. This works fine. The problem is 
> when the user try to download another file. Because the links are 
> disabled after the first download. And the page must be reloaded to 
> get the links available."
>
> thanks
> Pablo
>
> --------------------------------------------------
> From: "Nino Saturnino Martinez Vazquez Wael" <ni...@jayway.dk>
> Sent: Friday, October 10, 2008 11:31 AM
> To: <us...@wicket.apache.org>
> Subject: Re: Reloading page after sending file
>
>> Hvad about doing a popup for the download?
>>
>> Milan Kr(ápek wrote:
>>> Hi,
>>>   I have (as usually ) some problem. :o)
>>>   In my application I need to allow the users to download some 
>>> stored files. But this files should not be acessible for everyone so 
>>> I cannot place them to some web server.  I resolve this by creating 
>>> new wicket page, that just control if the user is allowed to 
>>> download the file and send the file as a stream to web browser.
>>>   The problem is that on the main page I display the files as links 
>>> generated by ListView so they are links provided by javascript. 
>>> After somebody click on the link. My application sends to the 
>>> browser a file and user can it open or store to disk. This works 
>>> fine. The problem is when the user try to download another file. 
>>> Because the links are disabled after the first download. And the 
>>> page must be reloaded to get the links available.
>>>   So what I need?   thing the reason of my problem is this. After 
>>> user click on the link for downloading file, he is redirected to the 
>>> page that send him/her stream of data. And I need that after the 
>>> stream ends. The user will be automaticaly redirected to the parent 
>>> (main) page. But I did not see any way how to do it.
>>>
>>> Any advices or ideas??
>>> I will be greatefull  for anything.
>>>
>>> Have a nice day
>>>
>>> Milan
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>> -- 
>> -Wicket for love
>>
>> Nino Martinez Wael
>> Java Specialist @ Jayway DK
>> http://www.jayway.dk
>> +45 2936 7684
>>
>>
>> ---------------------------------------------------------------------
>> 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
>

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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


Re: Reloading page after sending file

Posted by Pablo Scagno <ps...@hotmail.com>.
Nino, can you explain me how you do this?

" The problem is that on the main page I display the files as links 
generated by ListView so they are links provided by javascript. After 
somebody click on the link. My application sends to the browser a file and 
user can it open or store to disk. This works fine. The problem is when the 
user try to download another file. Because the links are disabled after the 
first download. And the page must be reloaded to get the links available."

thanks
Pablo

--------------------------------------------------
From: "Nino Saturnino Martinez Vazquez Wael" <ni...@jayway.dk>
Sent: Friday, October 10, 2008 11:31 AM
To: <us...@wicket.apache.org>
Subject: Re: Reloading page after sending file

> Hvad about doing a popup for the download?
>
> Milan Kr(ápek wrote:
>> Hi,
>>   I have (as usually ) some problem. :o)
>>   In my application I need to allow the users to download some stored 
>> files. But this files should not be acessible for everyone so I cannot 
>> place them to some web server.  I resolve this by creating new wicket 
>> page, that just control if the user is allowed to download the file and 
>> send the file as a stream to web browser.
>>   The problem is that on the main page I display the files as links 
>> generated by ListView so they are links provided by javascript. After 
>> somebody click on the link. My application sends to the browser a file 
>> and user can it open or store to disk. This works fine. The problem is 
>> when the user try to download another file. Because the links are 
>> disabled after the first download. And the page must be reloaded to get 
>> the links available.
>>   So what I need?   thing the reason of my problem is this. After user 
>> click on the link for downloading file, he is redirected to the page that 
>> send him/her stream of data. And I need that after the stream ends. The 
>> user will be automaticaly redirected to the parent (main) page. But I did 
>> not see any way how to do it.
>>
>> Any advices or ideas??
>> I will be greatefull  for anything.
>>
>> Have a nice day
>>
>> Milan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> -- 
> -Wicket for love
>
> Nino Martinez Wael
> Java Specialist @ Jayway DK
> http://www.jayway.dk
> +45 2936 7684
>
>
> ---------------------------------------------------------------------
> 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


Re: Reloading page after sending file

Posted by Nino Saturnino Martinez Vazquez Wael <ni...@jayway.dk>.
Hvad about doing a popup for the download?

Milan Kr(ápek wrote:
> Hi,
>   I have (as usually ) some problem. :o)
>   In my application I need to allow the users to download some stored files. But this files should not be acessible for everyone so I cannot place them to some web server.  I resolve this by creating new wicket page, that just control if the user is allowed to download the file and send the file as a stream to web browser.
>   The problem is that on the main page I display the files as links generated by ListView so they are links provided by javascript. After somebody click on the link. My application sends to the browser a file and user can it open or store to disk. This works fine. The problem is when the user try to download another file. Because the links are disabled after the first download. And the page must be reloaded to get the links available.
>   So what I need?   thing the reason of my problem is this. After user click on the link for downloading file, he is redirected to the page that send him/her stream of data. And I need that after the stream ends. The user will be automaticaly redirected to the parent (main) page. But I did not see any way how to do it.
>
> Any advices or ideas??
> I will be greatefull  for anything.
>
> Have a nice day
>
> Milan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   

-- 
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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