Re: getResponseWriter

2006-05-05 Thread Stephane Decleire
Thanks Andreas. It works. Andreas Andreou wrote: getMarkupWriterSource().newMarkupWriter(pw, new ContentType("text/html")) will do just fine. Simply inject tapestry.markup.MarkupWriterSource in your page Stephane Decleire wrote: getResponseWriter was very usefull to get and

Re: getResponseWriter

2006-05-04 Thread Bryan Lewis
Would this help? @InjectObject("infrastructure:response") public abstract WebResponse getWebResponse(); OutputStream os = getWebResponse().getOutputStream(contentType); Stephane Decleire wrote: > getResponseWriter was very usefull to get and store the resul

Re: getResponseWriter

2006-05-04 Thread Andreas Andreou
getMarkupWriterSource().newMarkupWriter(pw, new ContentType("text/html")) will do just fine. Simply inject tapestry.markup.MarkupWriterSource in your page Stephane Decleire wrote: > getResponseWriter was very usefull to get and store the result of a > page generated by Tap

Re: getResponseWriter

2006-05-04 Thread Stephane Decleire
getResponseWriter was very usefull to get and store the result of a page generated by Tapestry instead of sending it to the user. ByteArrayOutputStream out = new ByteArrayOutputStream(); IMarkupWriter writer = page.getResponseWriter(out); cycle.activate(page); cycle.renderPage(writer

Re: getResponseWriter

2006-05-04 Thread Andreas Andreou
Yep, it was removed. getResponseWriter returned a IMarkupWriter instance and it was used by Tapestry 3 to render the page. Tapestry 4 uses an IMarkupWriter according to the page's content type. You can override the page's content type by overriding BasePage.getResponseContentType() A

getResponseWriter

2006-05-04 Thread Stephane Decleire
Hi, It seems that the function getResponseWriter of the BasePage class no more exists in T4 ... Am i wrong ? Is there an equivalent function ? Thanks in advance. -- Stéphane Decleire 05 56 57 99 20 06 63 78 69 06