Hi all.
The thing I'm trying to do is render an object of type image/png to the response without resorting to writing a custom service. I already did it using a service, what i do not like of it is that services are (obviously) stateless, not pooled, so i can't use them in the flexible way that Tapestry got me accustomed to when dealing with pages. What i would like would be, from my page listener, to get an injected "RawRenderingPage", set its "source" parameter to, e.g. an open inputstream, and activate it. It would then copy the source inputstream to the response outputstream.

Problem is, the page service, when calling renderComponent on my page RawRenderingPage, passes a ResponseWriter already initialized with the Writer obtained calling getWriter from the HttpServletResponse; this prevents me from calling getOutputStream on the same (injected) HttpServletResponse.

My idea would be to patch the ResponseWriter or the code creating it to lazily call HttpServletResponse.getWriter only when actually needed the first time, letting me get an handle on the response output stream in my page, if i want.

Before trying, i thought maybe someone had already analyzed the problem and eventually studied a better approach.

Regards

Francesco

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to