17 Jul 00:07
RE: rebuild children - when to do it
From: Ramon Leon <ramon.leon <at> allresnet.com>
Subject: RE: rebuild children - when to do it
Newsgroups: gmane.comp.lang.smalltalk.squeak.seaside
Date: 2008-07-16 22:07:25 GMT
Subject: RE: rebuild children - when to do it
Newsgroups: gmane.comp.lang.smalltalk.squeak.seaside
Date: 2008-07-16 22:07:25 GMT
> 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
RSS Feed