<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
That worked perfectly, thank you :)<br><br>RS<br><br><hr id="stopSpelling">Date: Thu, 15 Oct 2009 19:04:30 +0200<br>Subject: Re: [Seaside] Call and Answer<br>From: peter.osburg@gmail.com<br>To: seaside@lists.squeakfoundation.org<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>&nbsp; <b>renderContentOn:html </b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |component|<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; component := (WAComponentB new) rootComponent: self.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html render: component.<br><br>And within WAComponentB:<br>&nbsp; <b>answer </b>&gt;&gt; self rootComponent answer: 'blah'<br>
<br>I hope this helps.<br><br>Regards,<br>Peter<br><br><div class="ecxgmail_quote">2009/10/15 Robert Sirois <span dir="ltr">&lt;<a href="mailto:watchlala@hotmail.com">watchlala@hotmail.com</a>&gt;</span><br><blockquote class="ecxgmail_quote" style="padding-left: 1ex;">




<div>
I'm trying something a little strange here, and my logic is really quite flawed:<br><br>someWATask<br>&nbsp;&nbsp;&nbsp; go &gt;&gt; self call: WAComponentA<br><br>WAComponentA<br>&nbsp;&nbsp;&nbsp; renderContentOn: &gt;&gt; html render: WAComponentB<br>
&nbsp;&nbsp;&nbsp; children &gt;&gt; ^Array with: WAComponentB<br><br>WAComponentB<br>&nbsp;&nbsp;&nbsp; answer &gt;&gt; self answer: 'blah'<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 class="ecxhm"><br><hr>Hotmail: Trusted email with powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/177141665/direct/01/">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">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">www.peter-osburg.de</a><br><a href="http://www.experiencedwebprogramming.com">www.experiencedwebprogramming.com</a><br><a href="http://www.mix-rss.com">www.mix-rss.com</a><br>                                               <br /><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='_new'>Sign up now.</a></body>
</html>