[Seaside] Accessing the root component from a child one
Pavel Krivanek
squeak3 at continentalbrno.cz
Tue Mar 1 19:35:05 CET 2005
Hi, I use this solution:
All my components have inst. variable identifying parent and I create every
component using parent: method.
Furthermore I probe root component recursively
root
^ (parent respondsTo: #root)
ifTrue: [ parent root ]
ifFalse: [ self ].
If one component wants to be root, it simply redefines the this method
root
^ self
Pavel
More information about the Seaside
mailing list