On Tue, Apr 13, 2010 at 9:56 PM, Mortensen Sigrid E. <span dir="ltr">&lt;<a href="mailto:sigrid@selfhelpsoftware.com">sigrid@selfhelpsoftware.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div style="word-wrap: break-word;">Okay, well... I have a follow-up question.<div><br></div><div>It turns out that the problem is not so much that the children are being added dynamically, as it is that the component the children are in is being added to the page via an SUUpdater.  When an anchor is clicked, I&#39;m using the updater to redisplay only the portion of the page that has that component.</div>

<div><br></div><div>Is there any way to update the style when this happens?  I&#39;ve looked at #updateRoot: but it&#39;s not clear how I could call that or where I could find the root to pass as a parameter.</div></div>
</blockquote>
<div><br>No. The style methods are called when writing out the &lt;head&gt; section of a document. Obviously this only happens when the full page is being rendered, so the issue is that your component isn&#39;t returned by #children at that point. If you know all the components that might be displayed later, you could possibly return them all from #children but this doesn&#39;t work if you&#39;re creating the components on the fly, of course.<br>

<br>I mean, ok, with Ajax you can do whatever you want, so certainly there would be some way you could add styles to the &lt;head&gt; of the document but you&#39;d have to write some JS to do it and it seems fairly kludgy.<br>

<br>Julian<br></div></div>