Re: [T5] Rendering a block a component received as parameter

2008-07-10 Thread Tobias Wehrum
Hi Josh, thanks, this works great! I think I understand the rendering process now a little bit better, so a Delegate would have been fine too - thank you, Howard. I just didn't understand how to render that Delegate before, since it is a component too. (I hope I now understand it correctly th

Re: [T5] Rendering a block a component received as parameter

2008-07-09 Thread Josh Canfield
But you can't use a delegate component without a template, right? On Wed, Jul 9, 2008 at 12:15 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Another option is to use the Delegate component and pass it the Block > instance. > > On Wed, Jul 9, 2008 at 9:59 AM, Josh Canfield <[EMAIL PROTECTED]>

Re: [T5] Rendering a block a component received as parameter

2008-07-09 Thread Howard Lewis Ship
Another option is to use the Delegate component and pass it the Block instance. On Wed, Jul 9, 2008 at 9:59 AM, Josh Canfield <[EMAIL PROTECTED]> wrote: > I don't recall if you can use MarkupWriter to write blocks yet, but one > method I've used is to return the block from the beginRender method,

Re: [T5] Rendering a block a component received as parameter

2008-07-09 Thread Josh Canfield
I don't recall if you can use MarkupWriter to write blocks yet, but one method I've used is to return the block from the beginRender method, it's rendered after whatever you write within the method. I believe for both blocks you would have to use both beginRender and beforeRenderTemplate, or I supp

[T5] Rendering a block a component received as parameter

2008-07-09 Thread Tobias Wehrum
Hi there, I am developing a tree component which can take several classes as nodes. Each class should have it's own body, stored in parameters - and then rendered, of course. Now, lets say I have I have this code in my Test.tml: ---