[Seaside] Garbage Collection/Handling

Philippe Marschall philippe.marschall at gmail.com
Fri Apr 13 13:10:57 UTC 2007


2007/4/13, Lukas Renggli <renggli at gmail.com>:
> > Both components have an effect on the html root object (both over ride
> > #updateRoot:) and have differing values. So far "it's working" but I am
> > not sure if this is an acceptable process for it? Does the html root
> > object make changes to the root attributes (or other items) according to
> > both components, regardless of which component is rendered?
>
> It is ok to return too many components from #children, it is just
> required that you return all component instances that might be
> rendered. However, you can also do something like:
>
> Root>>children
>    ^(someExpression)
>       ifTrue: [Array with: componentOne]
>       ifFalse: [Array with: componentTwo]


an other option would be to use #call:

Philippe

> Cheers,
> Lukas
>
>
> --
> Lukas Renggli
> http://www.lukas-renggli.ch
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the Seaside mailing list