Hi Bill,<br><br><div class="gmail_quote"><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 can&#39;t do anything with request contexts in the image.  <br>
</div></div></blockquote><div><br></div><div>self session</div><div>self requestContext</div><div>etc</div><div><br></div><div>won&#39;t work in the debugger as they are dynamic variables which use the exception mechanism to retrieve their value (search for references to WACurrentRequestContext)</div>
<div><br></div><div>If you are in the debugger and you need the session or the request context you can either follow the stack trace until you find a variable holding the session or request context or just add the following code to the method you are debugging and resume the debugger:</div>
<div><br></div><div>| theSession theRequestContext |</div><div><br></div><div>.</div><div>.</div><div>.</div><div><br></div><div>theSession := self session.</div><div>theRequestContext := self requestContext.</div><div>self halt.</div>
<div><br></div><div>---</div><div><br></div><div>Hope this helps</div><div><br></div><div>Nick</div><div><br></div><div> </div><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">
<br>
<br>
<br>
<div>----------------<br>
<div><font>
<div><br>
<pre>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.

On 15 March 2012 18:34, Schwab,Wilhelm K &lt;<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">bschwab at anest.ufl.edu</a>&gt; wrote:

&gt;<i>  I am trying to create anchors that will &quot;dynamically&quot; serve pdf
</i>&gt;<i> documents.  The archive in question is way too big for a FileLibrary and a
</i>&gt;<i> separate web server is probably overkill since I intend to do all of this
</i>&gt;<i> locally and would rather not have to run Apache on the machines in question
</i>&gt;<i> (security paranoia or laziness, take your pick&lt;g&gt;) .  So, I was hoping to
</i>&gt;<i> create mime documents on the fly.
</i>&gt;<i>
</i>&gt;<i> I found suggestions such as:
</i>&gt;<i>
</i>&gt;<i>     component session requestContext respond:[ :response |
</i>&gt;<i>         response
</i>&gt;<i>             document:self getPdfBytes
</i>&gt;<i>             mimeType: &#39;application/pdf&#39;
</i>&gt;<i>             fileName: &#39;seaside-test.pdf&#39;;
</i>&gt;<i>             doNotCache
</i>&gt;<i>
</i>&gt;<i> I don&#39;t see #getPdfBytes, but suspect I can wing it given the file names
</i>&gt;<i> in anchors.
</i>&gt;<i>
</i>&gt;<i> The problem is that everything I ask for a requestContext feigns
</i>&gt;<i> ignorance.  I can&#39;t even get #session because of the same error.  I am
</i>&gt;<i> using Seaside 3 from the Pharo 1.3 image and Seaside downstream project.
</i>&gt;<i>
</i>&gt;<i> Any suggestions?
</i>&gt;<i>
</i>&gt;<i> Bill</i></pre>
<br>
</div>
</font></div>
</div>
</div>
</div>

</blockquote></div><br>