Hi all,<div><br></div><div><br></div><div>In have a simple case: in an ajax callback I trigger an announcement and in the callback associated with the announcement I try to render a Date object. When I do this I get a WARequestContextNotFound exception. </div>

<div><br></div><div>To be more exact I have in a component this function to render the callback link:</div><div><br></div><div><div>renderAnnouncementUpdate: html</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>html anchor</div>

<div>    <span class="Apple-tab-span" style="white-space:pre">        </span> <span class="Apple-tab-span" style="white-space:pre">        </span>onClick: (html jQuery ajax script: [ :s |</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>script := s.</div>

<div><span class="Apple-tab-span" style="white-space:pre">                        </span>model announce: SGLLinkClickedAnnouncement new ]);</div><div>     <span class="Apple-tab-span" style="white-space:pre">                </span>with: &#39;Update Announcements&#39;</div>

</div><meta charset="utf-8"><div><br></div><div>The model is initialized when I create the component in:</div><div>initialize</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>super initialize.</div>
<div>
<span class="Apple-tab-span" style="white-space:pre">        </span></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>model := SGLVerySimplePresentation new.<span class="Apple-tab-span" style="white-space:pre">        </span></div>

<div><span class="Apple-tab-span" style="white-space:pre">        </span>model on: SGLLinkClickedAnnouncement do: [:ann|</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>self onClick: ann]. </div><div><br>

</div><div>When the announcement is called it will trigger the onclick: method which will do the rendering:</div><div><div>onClick: ann</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>self addScripts: script</div>

</div><div><div>addScripts: s</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>s &lt;&lt; (s jQuery: #date1)</div><div>             html: [ :r | r render: Date today ].</div><div>      s &lt;&lt; (s jQuery: #time1)</div>

<div>             html: [ :r | r render: Time now ]</div></div><div><br></div><div>However the html: method trigers an WARequestContextNotFound exception.</div><div><br></div><div>I&#39;v tried this on Pharo 1.3 (running on CogVM) with the latest version of Seaside.</div>

<div><br></div><meta charset="utf-8"><div>The application can be found in the Moose Playground project from <a href="http://www.squeaksource.com">http://www.squeaksource.com</a> in the package SGL-Seaside-Problem. Atfer you install the package and</div>

<div>start a web server you have to execute &quot;SGLTestComponentMin registerAsApplication: &#39;SGLTestComponentMin&#39;.&quot; to register the application.</div><div><br></div><div>Am I missing something?</div><div><br>

</div><div>Cheers,</div><div>Andrei</div><div><br></div>