Re: streaming files with wicket

2011-06-27 Thread Douglas Ferguson
Yeah.. I thought of that, but I liked the idea of streaming without hitting
disc.

On Mon, Jun 20, 2011 at 3:55 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 i dont think there is a way once you start streaming with an
 attachment header...

 you can try rendering the page into memory and writing that out
 instead - so then you at least know your page rendered ok.

 -igor

 On Mon, Jun 20, 2011 at 1:50 PM, Douglas Ferguson
 doug...@douglasferguson.us wrote:
  I built a page with markup type = xml and set the content type and
 disposition so that the file will download.
 
  This is great except when there is a fatal exception thrown, my error
 page is getting written to the downloaded file.
 
  Any ideas how make the browser load the error page?
 
  Only thought I had was to stream the file to disc and then send A) stream
 to browser if there is no exception or B) forward to error page.
  But that kinda sucks as it is not truing streaming back to browser.
 
  D/
  -
  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: streaming files with wicket

2011-06-27 Thread Martin Grigorov
Igor's response doesn't mention hitting disk.
You can do it in memory

On Mon, Jun 27, 2011 at 9:17 PM, Douglas Ferguson
doug...@douglasferguson.us wrote:
 Yeah.. I thought of that, but I liked the idea of streaming without hitting
 disc.

 On Mon, Jun 20, 2011 at 3:55 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote:

 i dont think there is a way once you start streaming with an
 attachment header...

 you can try rendering the page into memory and writing that out
 instead - so then you at least know your page rendered ok.

 -igor

 On Mon, Jun 20, 2011 at 1:50 PM, Douglas Ferguson
 doug...@douglasferguson.us wrote:
  I built a page with markup type = xml and set the content type and
 disposition so that the file will download.
 
  This is great except when there is a fatal exception thrown, my error
 page is getting written to the downloaded file.
 
  Any ideas how make the browser load the error page?
 
  Only thought I had was to stream the file to disc and then send A) stream
 to browser if there is no exception or B) forward to error page.
  But that kinda sucks as it is not truing streaming back to browser.
 
  D/
  -
  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






-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



streaming files with wicket

2011-06-20 Thread Douglas Ferguson
I built a page with markup type = xml and set the content type and disposition 
so that the file will download.

This is great except when there is a fatal exception thrown, my error page is 
getting written to the downloaded file.

Any ideas how make the browser load the error page?

Only thought I had was to stream the file to disc and then send A) stream to 
browser if there is no exception or B) forward to error page.
But that kinda sucks as it is not truing streaming back to browser.

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



Re: streaming files with wicket

2011-06-20 Thread Igor Vaynberg
i dont think there is a way once you start streaming with an
attachment header...

you can try rendering the page into memory and writing that out
instead - so then you at least know your page rendered ok.

-igor

On Mon, Jun 20, 2011 at 1:50 PM, Douglas Ferguson
doug...@douglasferguson.us wrote:
 I built a page with markup type = xml and set the content type and 
 disposition so that the file will download.

 This is great except when there is a fatal exception thrown, my error page is 
 getting written to the downloaded file.

 Any ideas how make the browser load the error page?

 Only thought I had was to stream the file to disc and then send A) stream to 
 browser if there is no exception or B) forward to error page.
 But that kinda sucks as it is not truing streaming back to browser.

 D/
 -
 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