<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Just because the "smallComponent" is included in the children of your "bigComponent" doesn't make the "bigComponent" the parent of "smallComponent" architecturally. That statement sounds confusing, I know. Including components in children does not cause those children to have references (instance variables, for example) to the component that returns them as children (which you're expecting to be parent). What you'll have to do is create an instance variable on "smallComponent" and set a reference to "bigComponent".<div><br></div><div>RS<br><br><div>&gt; Date: Sun, 2 Jun 2013 05:19:48 +0430<br>&gt; From: Bahman@BahmanM.com<br>&gt; To: seaside@lists.squeakfoundation.org<br>&gt; Subject: [Seaside] How to access the parent of a component?<br>&gt; <br>&gt; Hi all,<br>&gt; <br>&gt; I have a big component consisting of smaller ones.<br>&gt; <br>&gt; &lt;code&gt;<br>&gt; <br>&gt; WAComponent subclass: #BigComponent<br>&gt;         instanceVariableNames: 'smallComponent placeHolder'<br>&gt;         classVariableNames: ''<br>&gt;         poolDictionaries: ''<br>&gt;         category: ''<br>&gt; <br>&gt; WAComponent&gt;&gt;#children<br>&gt;         ^ Array with: self smallComponent with: self placeHolder.<br>&gt; <br>&gt; &lt;/code&gt;<br>&gt; <br>&gt; Now I'm trying to change `placeHolder' from an `anchor' callback in<br>&gt; `smallComponent'.<br>&gt; <br>&gt; &lt;code&gt;<br>&gt; <br>&gt; SmallComponent&gt;&gt;#renderContentOn: h<br>&gt;         h anchor<br>&gt;                 callback: [<br>&gt;                     self parent placeHolder: SomeOtherComponent new ];<br>&gt;                 with: 'Some other component' ].<br>&gt; <br>&gt; &lt;/code&gt;<br>&gt; <br>&gt; But I get this exception:  `SmallComponent(Object)&gt;&gt;doesNotUnderstand:<br>&gt; #parent' which, I believe, says that I cannot access the container<br>&gt; component like this.<br>&gt; <br>&gt; What is the best way to do this (access the container component)?  Is it<br>&gt; possible at all?<br>&gt; <br>&gt; TIA,<br>&gt; <br>&gt; -- <br>&gt; Bahman Movaqar  (http://BahmanM.com)<br>&gt; ERP Evaluation, Implementation, Deployment Consultant<br>&gt; _______________________________________________<br>&gt; seaside mailing list<br>&gt; seaside@lists.squeakfoundation.org<br>&gt; http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></div></div>                                               </div></body>
</html>