[Seaside] rebuild children - when to do it

Ramon Leon ramon.leon at allresnet.com
Wed Jul 16 22:07:25 UTC 2008


> From: seaside-bounces at lists.squeakfoundation.org 
> [mailto:seaside-bounces at lists.squeakfoundation.org] On Behalf 
> Of Squeaker
> Sent: Wednesday, July 16, 2008 2:56 PM
> To: seaside at lists.squeakfoundation.org
> Subject: [Seaside] rebuild children - when to do it
> 
> Greetings,
> 
> In my renderContentOn: method I am making a call to my method 
> rebuildChildren which reconstructs my children on the fly. 
> This is done 
> as the first thing in renderContentOn:
> 
> The code appears to work.
> 
> My question: Is it ok to rebuild my children at rendering time?
> 
> Thanks,
> Frank

No, the state of your component should not be changed by rendering.  Setup
your component in #initialize, or lazily in #children.

Ramon Leon
http://onsmalltalk.com



More information about the seaside mailing list