Re: T5: Render a block or component programatically

2007-09-18 Thread Ted Steen
and that is exactly what I am going to do! thanks! 2007/9/19, Josh Canfield <[EMAIL PROTECTED]>: > I had a similar problem. What I ended up doing was returning Object from the > beginRender method and either returning the block parameter or using the > writer and returning null. > > To simulate lo

Re: T5: Render a block or component programatically

2007-09-18 Thread Josh Canfield
I had a similar problem. What I ended up doing was returning Object from the beginRender method and either returning the block parameter or using the writer and returning null. To simulate looping you can store your tokenizer in a page variable and return st.hasMoreTokens from afterRender, if it's

Re: T5: Render a block or component programatically

2007-09-18 Thread Ted Steen
Im looking for something similar to T4 IComponent.renderBody(IMarkupWriter writer, IRequestCycle cycle) 2007/9/18, Ted Steen <[EMAIL PROTECTED]>: > I would like to do this, > > @BeginRender > final void begin(MarkupWriter writer) > { > StringTokenizer st = new StringTokenizer(

T5: Render a block or component programatically

2007-09-18 Thread Ted Steen
I would like to do this, @BeginRender final void begin(MarkupWriter writer) { StringTokenizer st = new StringTokenizer(template, " "); while(st.hasMoreTokens()) { String token = st.nextToken(); if("TEST".equals(token))