Hello list,<br>I have a question regarding the use of WADecoration and how to show subcomponents inside its rendering phase.<br><br>I need to do something like this:<br><br>MyComponent &gt;&gt; initialize<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; super initialize.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self addDecoration: MyWADecorationSubclass new.<br>
<br>MyDecorationSubclass &gt;&gt; renderContentOn:html<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self renderOwnerOn:html.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html render: OtherComponent instance<br><br>OtherComponent &gt;&gt; renderContentOn: html<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html render: etc....<br>

&nbsp;<br>MyComponent is decorated with a MyDecorationSubclass instance. When MyComponent gets rendered, the OtherComponent is also  rendered, as part of the decoration. The visual result is as expected, both the original component and the decoration are visible. The problem comes with callbacks (children problem). As the decorated component does not return the decoration&#39;s subcomponent (OtherComponent) as one of its children, callbacks inside OtherComponent wont work. <br>


<br>I could easily fix this problem if I add the OtherComponent dynamically to some collection of the decorated component. To be able to do this, the decorated component cannot be a simple WAComponent, so I wouldn&#39;t be able to decorate WAComponents the way I would like.<br>


<br><br>My question is: <br>Is there any way to decorate a WAComponent with a WADecoration and render a second component inside the decoration&#39;s renderContentOn:. In such way that the second component&#39;s callbacks would work ok?<br>


<br>thanks, regards!<br>Leandro<br>