Hi Milan,<div><br></div><div>The problem is that both #respond: causes the callback processing to immediately halt so a response can be returned.</div><div><br></div><div>You can do other stuff in the #respond: block, which will of course happen before the response is returned. You can also respond separately:</div>

<div><br></div><div>-------</div><div><meta charset="utf-8">self requestContext response<br>      contentType: &#39;application/pdf&#39;;<br>      document: (StandardFileStream readOnlyFileFullyNamed: fileName );<br>      attachmentWithFileName: fileName.</div>

<div><br></div><div>&quot;some other stuff&quot;</div><div><br></div><div>self requestContext respond.</div><div>----------</div><div><br></div><div>However, if your #answer is in response to a #call: that won&#39;t work either, since that will cause the continuation to be invoked and control flow will return to the method that did the #call: (your response will still be configured, but the code after the #call: will be executed, possibly altering the response). In this case, you could possibly use #home on the calling component to remove its delegations, but I&#39;d question why you were using #call:/#answer: at all.</div>

<div><br></div><div>If the #answer is in response to a #show: or is triggering an #onAnswer: block in an embedded component, it should work fine to #answer inside the #respond: block.</div><div><br></div><div>Hope that&#39;s helpful.</div>

<div><br></div><div>Julian</div><div><br><div class="gmail_quote">2011/6/14 Milan Mimica <span dir="ltr">&lt;<a href="mailto:milan.mimica@gmail.com">milan.mimica@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hello!<br>
<br>
I&#39;m having trouble with page flow. At one point I need a component to issue a download of file and #answer back to the caller.<br>
I&#39;m issuing a download using:<br>
<br>
self requestContext respond: [ :response |<br>
   response<br>
       contentType: &#39;application/pdf&#39;;<br>
       document: (StandardFileStream readOnlyFileFullyNamed: fileName );<br>
       attachmentWithFileName: fileName<br>
 ].<br>
<br>
After that, &quot;self answer&quot; doesn&#39;t seem to work. What can I do about it?<br><font color="#888888">
<br>
<br>
-- <br>
Milan Mimica<br>
<a href="http://sparklet.sf.net" target="_blank">http://sparklet.sf.net</a><br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</font></blockquote></div><br></div>