Thanks Simon. Btw, adding:
context.getExternalContext().getRequestMap().put("org.apache.myfaces.myFacesJavascript",
"");
while feeding the response seems to solve the problenm. No warning
anymore for html contents.
-- Renzo
Simon Kitching wrote:
---- Renzo Tomaselli <[EMAIL PROTECTED]> schrieb:
Hi, in order to render attachments (images, documents, etc.) I use to
follow the common pattern of catching the request in a phase listener,
then inserting the contents in a response stream.
Since I upgraded to Myfaces 1.1.5, I get the warning "MyFaces special
_javascript_ could not be retrieved from request-map" when contents is html.
Is there any way to manually feed the request map with expected js - o
even better - can I do it through an empty string just to avoid this
warning at any request ?
I think your problem is exactly the same as the one discussed yesterday on this list: the response you are generating has http header
content-type: text/html
This then causes the tomahawk ExtensionsFilter to post-process the response, at which point it complains about the missing _javascript_.
If you are serving non-html code, you should ensure the content-type header is set correctly. Then ExtensionsFilter will ignore the data.
Regards,
Simon
|