[Seaside] Call and Answer
watchlala at hotmail.com
Thu Oct 15 17:25:32 UTC 2009
That worked perfectly, thank you :)
Date: Thu, 15 Oct 2009 19:04:30 +0200
Subject: Re: [Seaside] Call and Answer
From: peter.osburg at gmail.com
To: seaside at lists.squeakfoundation.org
I know this problem very well.
One way could be, to pass a reference of WAComponentA to WAComponentB.
You could probably create an instance variable called
After you initialized WAComponentB, you give it the reference from within WAComponentA, e.g.:
component := (WAComponentB new) rootComponent: self.
html render: component.
And within WAComponentB:
answer >> self rootComponent answer: 'blah'
I hope this helps.
2009/10/15 Robert Sirois <watchlala at hotmail.com>
I'm trying something a little strange here, and my logic is really quite flawed:
go >> self call: WAComponentA
renderContentOn: >> html render: WAComponentB
children >> ^Array with: WAComponentB
answer >> self answer: 'blah'
I would like for WAComponentB to answer someWATask in place of WAComponentA, is there a way to do this?
Hotmail: Trusted email with powerful SPAM protection. Sign up now.
seaside mailing list
seaside at lists.squeakfoundation.org
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the seaside