Re: Wicket and downloading huge pdf files

2009-03-03 Thread Peter Ertl

You might take a look at

  SharedResourceRequestTargetUrlCodingStrategy

and

  IndexedSharedResourceCodingStrategy

and eventually

  http://issues.apache.org/jira/browse/WICKET-1666

regards
peter


Am 02.03.2009 um 10:17 schrieb Emanuele Gesuato:


Only want to know if an url similar to:

http://www.myweb.com/.../depliant.pdf

with a pdf file (or similar) as suffix is possible to create in  
wicket.



On Fri, 2009-02-27 at 10:13 +0100, Emanuele Gesuato wrote:

Hi there,

We have several huge pdf files with many pages (an hundred or so)  
and we
would like to do a lazy loading of the pdf file when the user click  
to

download it. Right now, when the user click for some pdf we return to
the browser a resource stream with mime type "application/pdf" in  
which

we load the file as a byte array output stream.

But in this way the file is returned entirely to the user. In some  
web

site they use an url with the the pdf file embedded to it (example:
http://.../file.pdf); in this way the pdf client (adobe reader or
similar) could lazy load the pages of the document.

But is it a correct approach ? Is it possibile to implement something
similar using a custom UrlCodingStrategy ?

Thanks,
Emanuele Gesuato



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





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



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



Re: Wicket and downloading huge pdf files

2009-03-02 Thread Emanuele Gesuato
Only want to know if an url similar to:

http://www.myweb.com/.../depliant.pdf

with a pdf file (or similar) as suffix is possible to create in wicket.


On Fri, 2009-02-27 at 10:13 +0100, Emanuele Gesuato wrote:
> Hi there,
> 
> We have several huge pdf files with many pages (an hundred or so) and we
> would like to do a lazy loading of the pdf file when the user click to
> download it. Right now, when the user click for some pdf we return to
> the browser a resource stream with mime type "application/pdf" in which
> we load the file as a byte array output stream.
> 
> But in this way the file is returned entirely to the user. In some web
> site they use an url with the the pdf file embedded to it (example:
> http://.../file.pdf); in this way the pdf client (adobe reader or
> similar) could lazy load the pages of the document.
> 
> But is it a correct approach ? Is it possibile to implement something
> similar using a custom UrlCodingStrategy ?
> 
> Thanks,
> Emanuele Gesuato 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 



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



Wicket and downloading huge pdf files

2009-02-27 Thread Emanuele Gesuato
Hi there,

We have several huge pdf files with many pages (an hundred or so) and we
would like to do a lazy loading of the pdf file when the user click to
download it. Right now, when the user click for some pdf we return to
the browser a resource stream with mime type "application/pdf" in which
we load the file as a byte array output stream.

But in this way the file is returned entirely to the user. In some web
site they use an url with the the pdf file embedded to it (example:
http://.../file.pdf); in this way the pdf client (adobe reader or
similar) could lazy load the pages of the document.

But is it a correct approach ? Is it possibile to implement something
similar using a custom UrlCodingStrategy ?

Thanks,
Emanuele Gesuato 



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