[Seaside] WAComponent children

Milan Mimica milan.mimica at gmail.com
Fri Apr 8 06:56:49 UTC 2011


If I understood correctly, each WAComponent instance is responsible of
answering with an array of its child WAComponent instances. That is
all I know and some things remain unclear to me.
* Why exactly is this needed? It would help me understand how to use
it properly.

* Do I have to return the same children instances? Is the following legal:
myComponent >> children
myComponent >> lazyInit
    child := ChildComponent new.
myComponent >> resetChildren
    child := ChildComponent new.

* Do child components, by consequence, need to be instance variables?
Can I initiate child components on the fly like this:
myComponent >> renderContentOn: html
| child |
    child := ChildComponent new.
    html render: child.

Milan Mimica

More information about the seaside mailing list