I don&#39;t understand what you have been doing wrong. &quot;WACurrenrRequestContext value&quot; will always be available if you are inside a callback or rendering - virtually anywhere in Seaside. Wherever you have a WAComponent you can also send #session to it.<br>
<br><div class="gmail_quote">On 15 March 2012 18:34, Schwab,Wilhelm K <span dir="ltr">&lt;<a href="mailto:bschwab@anest.ufl.edu">bschwab@anest.ufl.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">I am trying to create anchors that will &quot;dynamically&quot; serve pdf documents.  The archive in question is way too big for a FileLibrary and a separate web server is probably overkill
 since I intend to do all of this locally and would rather not have to run Apache on the machines in question (security paranoia or laziness, take your pick&lt;g&gt;) .  So, I was hoping to create mime documents on the fly.<br>

<br>
I found suggestions such as:<br>
<br>
    component session requestContext respond:[ :response |<br>
        response <br>
            document:self getPdfBytes <br>
            mimeType: &#39;application/pdf&#39; <br>
            fileName: &#39;seaside-test.pdf&#39;;<br>
            doNotCache <br>
<div><br>
I don&#39;t see #getPdfBytes, but suspect I can wing it given the file names in anchors.<br>
<br>
The problem is that everything I ask for a requestContext feigns ignorance.  I can&#39;t even get #session because of the same error.  I am using Seaside 3 from the Pharo 1.3 image and Seaside downstream project.<br>
<br>
Any suggestions?<br>
<br>
Bill<br>
<br>
</div>
</div>
</div>

<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Milan Mimica<br><a href="http://sparklet.sf.net">http://sparklet.sf.net</a><br>