[Seaside] Call and Answer
Peter Osburg
peter.osburg at gmail.com
Thu Oct 15 17:04:30 UTC 2009
Hi Robert,
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
rootComponent
After you initialized WAComponentB, you give it the reference from within
WAComponentA, e.g.:
WAComponentA
*renderContentOn:html *
|component|
component := (WAComponentB new) rootComponent: self.
html render: component.
And within WAComponentB:
*answer *>> self rootComponent answer: 'blah'
I hope this helps.
Regards,
Peter
2009/10/15 Robert Sirois <watchlala at hotmail.com>
> I'm trying something a little strange here, and my logic is really quite
> flawed:
>
> someWATask
> go >> self call: WAComponentA
>
> WAComponentA
> renderContentOn: >> html render: WAComponentB
> children >> ^Array with: WAComponentB
>
> WAComponentB
> answer >> self answer: 'blah'
>
> I would like for WAComponentB to answer someWATask in place of
> WAComponentA, is there a way to do this?
>
> Thanks,
> RS
>
> ------------------------------
> Hotmail: Trusted email with powerful SPAM protection. Sign up now.<http://clk.atdmt.com/GBL/go/177141665/direct/01/>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
--
www.peter-osburg.de
www.experiencedwebprogramming.com
www.mix-rss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20091015/fbe3c2cd/attachment.htm
More information about the seaside
mailing list