You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by mbelarbi <mb...@zoomf.com> on 2007/11/29 11:34:44 UTC

How to Pass an InputStream into a wicket Resource

I have generated a Jasper Report as an InputStream. I would like to provide
this as a download, ideally I don't want to store the report as a file, it
is as an InputStream. I have looked at the Wicket ResourceLink class, but
that takes in a Wicket Resource, and I have a java.io.InputStream.

How do I get a Wicket Resource from an InputStream?

Other than using a ResourceLink, is there another way of doing this? maybe
by using the InputStream directly?

thanks.
-- 
View this message in context: http://www.nabble.com/How-to-Pass-an-InputStream-into-a-wicket-Resource-tf4896249.html#a14022968
Sent from the Wicket - User mailing list archive at Nabble.com.


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


Re: How to Pass an InputStream into a wicket Resource

Posted by severian <ge...@rtel.com>.
I think DynamicWebResource (with an appropriate override for
getResourceState()) will provide the connection you need between InputStream
& ResourceLink.  This is how the existing Wicket-Jasper integration project
works.  Check through previous mails for a link to the source.
-- 
View this message in context: http://www.nabble.com/How-to-Pass-an-InputStream-into-a-wicket-Resource-tf4896249.html#a14023396
Sent from the Wicket - User mailing list archive at Nabble.com.


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