OK got it sorry. The solution was to use the RenderCommand pushing multiple RenderCommands in the RenderQueue. I was just doing it in the wrong order.
Cheers, Dragan Sahpaski On Mon, May 30, 2011 at 10:26 AM, dragan.sahpas...@gmail.com < dragan.sahpas...@gmail.com> wrote: > Hi, > I just can't wrap my head around on how to do the following. > > @Parameter > private Block block; > > void afterRender(MarkupWriter writer) > { > > writer.element("div"); > // here I want to render the block > writer.end(); > > } > > I cannot use tml template and also I cannot implement this is different > passes of beginRender afterRender etc. rendering the div in one of the > passes and the block in another by returning the block from the render phase > method. > > Advice would be very appreciated. > > Cheers, > Dragan Sahpaski >