[Seaside] updateRoot question

Sean Allen sean at monkeysnatchbanana.com
Thu Apr 22 20:07:28 UTC 2010


I can do this with WAHtmlDocument>>addLoadScript: for javascript yes?
But there is no equiv for css etc?


On Fri, Apr 16, 2010 at 8:10 PM, Julian Fitzell <jfitzell at gmail.com> wrote:
> 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. :)
>
> Julian
>
> 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
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


More information about the seaside mailing list