I would prefer something like<div><br></div><div>ComponentA&gt;&gt;renderContentOn: html</div><div>  | component |</div><div>  component := ComponentB new onAnswer: [ :answerB | </div><div>    self answer: answerB</div><div>
  ].</div><div>  html render: component.</div><div><br></div><div>since it does not need a reference to the root component (~decoupling).</div><div><br><div class="gmail_quote">On Thu, Oct 15, 2009 at 7:25 PM, Robert Sirois <span dir="ltr">&lt;<a href="mailto:watchlala@hotmail.com">watchlala@hotmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div>
That worked perfectly, thank you :)<br><br>RS<br><br><hr>Date: Thu, 15 Oct 2009 19:04:30 +0200<br>Subject: Re: [Seaside] Call and Answer<br>From: <a href="mailto:peter.osburg@gmail.com" target="_blank">peter.osburg@gmail.com</a><br>
To: <a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><div><div></div><div class="h5"><br><br>Hi Robert,<br><br>I know this problem very well.<br>One way could be, to pass a reference of WAComponentA to WAComponentB.<br>
<br>You could probably create an instance variable called <br>rootComponent<br><br>After you initialized WAComponentB, you give it the reference from within WAComponentA, e.g.:<br>
WAComponentA<br>  <b>renderContentOn:html </b><br>       |component|<br>       component := (WAComponentB new) rootComponent: self.<br>       html render: component.<br><br>And within WAComponentB:<br>  <b>answer </b>&gt;&gt; self rootComponent answer: &#39;blah&#39;<br>

<br>I hope this helps.<br><br>Regards,<br>Peter<br><br><div>2009/10/15 Robert Sirois <span dir="ltr">&lt;<a href="mailto:watchlala@hotmail.com" target="_blank">watchlala@hotmail.com</a>&gt;</span><br><blockquote style="padding-left:1ex">





<div>
I&#39;m trying something a little strange here, and my logic is really quite flawed:<br><br>someWATask<br>    go &gt;&gt; self call: WAComponentA<br><br>WAComponentA<br>    renderContentOn: &gt;&gt; html render: WAComponentB<br>

    children &gt;&gt; ^Array with: WAComponentB<br><br>WAComponentB<br>    answer &gt;&gt; self answer: &#39;blah&#39;<br><br>I would like for WAComponentB to answer someWATask in place of WAComponentA, is there a way to do this?<br>

<br>Thanks,<br><font color="#888888">RS<br>                                               </font><div><br><hr>Hotmail: Trusted email with powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/177141665/direct/01/" target="_blank">Sign up now.</a></div>

</div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.peter-osburg.de" target="_blank">www.peter-osburg.de</a><br><a href="http://www.experiencedwebprogramming.com" target="_blank">www.experiencedwebprogramming.com</a><br>
<a href="http://www.mix-rss.com" target="_blank">www.mix-rss.com</a><br>                                               <br></div></div><div class="hm"><hr>Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href="http://clk.atdmt.com/GBL/go/171222985/direct/01/" target="_blank">Sign up now.</a></div>
</div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div>