Re: RSS feed output using Tapestry

2009-12-12 Thread Ilya Obshadko
> Reading your original message again, you said that you used writeRaw(). It > doesn't work because Tapestry expects to have a root element. Using a single > MarkupWriter.writeRaw() call doesn't generate a root element. MarkupWriter > doesn't parse what writeRaw() writes, so it just knows when the

Re: RSS feed output using Tapestry

2009-12-12 Thread Thiago H. de Paula Figueiredo
Em Sat, 12 Dec 2009 07:36:43 -0200, Ilya Obshadko escreveu: That is, no way to do that using MarkupWriter? Could you explain why? I've wrote a quick test and yes, you can use MarkupWriter to generate a page. I previously thought that it wasn't possible. I've learned something today. Nic

Re: RSS feed output using Tapestry

2009-12-12 Thread Ilya Obshadko
That is, no way to do that using MarkupWriter? Could you explain why? I've already read about onActivate () and TextStreamResponse, but tried to avoid it. Using template to form RSS output is unfortunately not an option in my case. On Fri, Dec 11, 2009 at 10:49 PM, Thiago H. de Paula Figueiredo <

Re: RSS feed output using Tapestry

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Sat, 12 Dec 2009 00:38:02 -0200, Howard Lewis Ship escreveu: I've also created pages that directly output RSS, which was nice ... to be able to use T5 templating to generate the RSS content was a snap! RSS or Atom? :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5

Re: RSS feed output using Tapestry

2009-12-11 Thread Howard Lewis Ship
I've also created pages that directly output RSS, which was nice ... to be able to use T5 templating to generate the RSS content was a snap! On Fri, Dec 11, 2009 at 11:49 AM, Thiago H. de Paula Figueiredo wrote: > Em Fri, 11 Dec 2009 16:57:28 -0200, Ilya Obshadko > escreveu: > >> Could someone p

Re: RSS feed output using Tapestry

2009-12-11 Thread Thiago H. de Paula Figueiredo
Em Fri, 11 Dec 2009 16:57:28 -0200, Ilya Obshadko escreveu: Could someone point out how to create RSS feed using Tapestry page? Create a page and return a StreamResponse (in this case, a TextStreamResponse) containing the RSS output on its onActivate() method. -- Thiago H. de Paula Figu

RSS feed output using Tapestry

2009-12-11 Thread Ilya Obshadko
Could someone point out how to create RSS feed using Tapestry page? I tried the following (using http://wiki.java.net/bin/view/Javawsxml/Romelibrary): - output feed contents to property and then use t:outputraw to display it - output feed contents directly using beforeRender ( MarkupWriter writer