[Seaside] session variable vs. dynamic variable

Vladimir Pogorelenko vladimir at livesystems.ru
Fri Feb 8 18:23:20 UTC 2008

08.02.2008, в 7:58, itsme213 написал(а):

> I am using a session variable for my sub-component callbacks to gain  
> access
> to a root component (to trigger an ajax redraw). As Lukas had  
> cautioned,
> this couples my components to a session subclass and makes it harder  
> to
> reuse my components.

Your root component knows about children. And children knows about  
root. Why not just connect them explicitly on component side, like:

	child := WAMyChild new; root: self.

	self doSomethingWith: self root.


More information about the seaside mailing list