[Seaside] updateRoot question

Julian Fitzell jfitzell at gmail.com
Sat Apr 17 00:10:13 UTC 2010

If you're streaming the response, definitely not. If you're not, well maybe
technically, though I think even in that case the data has probably been
written to the response's data stream. You could certainly reset the
response but then you'd lose everything...

You could subclass the render loop code and... the render context class
maybe? Then you could hold onto the root in the context and not write it out
until you were done rendering content. Or something... you're getting in
deep at that point. :)


On Fri, Apr 16, 2010 at 10:28 PM, Sean Allen <sean at monkeysnatchbanana.com>wrote:

> is it possible for code that is executed during renderContentOn: to
> add additional header info like updateRoot: does.
> so basically, delay til renderContentOn decisions about what to add to
> root and what not.
> in psuedo something like:
> renderContentOn: aCanvas
>    aCanvas html: 'some html'.
>    self renderMySpecialMethod.
>    aCanvas html: 'some html'.
> renderMySpecialMethod: aCanvas
>   *magic to get html root*
>   *do something with html root*
>   aCanvas html: 'special html that needs something in the root to operate'.
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20100417/1c199ede/attachment.htm

More information about the seaside mailing list