On Fri, Mar 27, 2009 at 2:54 AM, Davor Miku <davorm...@gmail.com> wrote:
> Hi!

Hello!

> I'm using rome to build rss feed component.
>   �...@beginrender
>    boolean init(MarkupWriter writer){
> feed.setEntries(entries);
> SyndFeedOutput output = new SyndFeedOutput();
> writer.writeRaw(output.outputString(feed));

The recommended way of doing this (sending content not generated by a
Tapestry template) is returning a StreamResponse in the onActivate()
method or any other event handler method. There's an example here:
http://wiki.apache.org/tapestry/Tapestry5HowToCreateADynamicPDF. It
deals with binary content, but it also applies to text content. It has
the advantage of setting the right content type in the response.

-- 
Thiago

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

Reply via email to