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

Help with t:loop

2009-12-12 Thread Ashwanth Kumar
Hi, I'm currently trying to create looping structure in one of my pages. The source attribute is an object (an entity). The entity, has a value, which refers to the ID of the other Entity's reference. Its like i've a column - postedBy - this has UID (an Integer) from another entity. My question

Re: Help with t:loop

2009-12-12 Thread Thiago H. de Paula Figueiredo
Em Sat, 12 Dec 2009 09:07:51 -0200, Ashwanth Kumar ashwanth.ku...@gmail.com escreveu: Hi, Hi! I'm currently trying to create looping structure in one of my pages. The source attribute is an object (an entity). It is an object that must be an array or an Iterable (Collection, List,

Re: Help with t:loop

2009-12-12 Thread blueboy6
Hi, My suggestion is to generate some sort of LIST in backend using that ID's and than to use that list as source for loop component. Loop is designed to work with collection of items, so best is to give collection to handle it. Hope this helps Bojan Cincur Ashwanth Kumar wrote: Hi,

Re: Help with t:loop

2009-12-12 Thread Ashwanth Kumar
Thanks, sorry for being so dumb! I used the setter of the value attribute's object to set the name and then display it! - Ashwanth Kumar On Sat, Dec 12, 2009 at 5:27 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Em Sat, 12 Dec 2009 09:07:51 -0200, Ashwanth Kumar

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 ilya.obsha...@gmail.com 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

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

API for obtaining absolute URL of the page?

2009-12-12 Thread Ilya Obshadko
Just curious, if there is an API that could create absolute URL of the given page? Looking at Link interface, there IS a method createAbsoluteURI(), but it creates only URI, not URL meaningful for outside world. Still this kind of API would be very useful, for example for RSS feeds, mail