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