Mike Kienenberger wrote:
On 3/27/07, Carsten Kaiser <[EMAIL PROTECTED]> wrote:
But I'm still interested in getting some statement concerning the
description on the Wiki page referenced above.

Edit it :-)

I think Carsten is asking for an explanation of the example code.

After looking at it, I'm not sure why Carsten was getting the original exception re no response-writer. I hadn't read the code carefully enough and was assuming that AddResource.addJavascriptInline was writing it out immediately. However the method takes a "ResourcePosition" parameter of value HEAD_BEGIN, and is simply adding that inline script to a set of values to output later. So I'm not sure why the response stream would be needed then.

By the way, Carsten, the resource position can also be BODY_ONLOAD which is what you stated you wanted..

Regards,

Simon

Reply via email to