On 6/25/07, David Brunette <[EMAIL PROTECTED]> wrote:
Sorry... it seems as though it was a bit premature to say that it
was not working with Facelets. After trying a bunch of different
things, I forgot one very important thing to try... get the latest code!
I was about to ask! :) Yeah, the XMLHttp-PPR was
broken with Facelets. The ResponseWriter construction
in Facelets is really tortuous, took awhile to come up with
a solid solution.
After getting a newly built set of JARs this afternoon and trying it
again with Facelets, the PPR works just fine in both Tomcat and
Weblogic. Woops.
But we're still stuck on having the wrong response contentType with
JSP & Weblogic.
Well, that's a better defined problem at least! One possibility -
instead of using the directive, maybe use a JSP scriptlet along
the lines of:
FacesContext fc = FacesContext.getCurrentInstance();
RequestContext rc = RequestContext.getCurrentInstance();
if (!rc.isPartialRequest(fc))
pageContext.getResponse().setContentType("text/html; charset=utf-8")
... though, of course, you'd want to wrap this workaround
up in a tag.
I'm mostly just guessing here, though. You could bring
the general issue to a BEA forum: why do WebLogic 8.1
JSPs set the content type out directly, instead of
going through the ServletResponse API - blowing off
any wrappers added by filters?
-- Adam