This content has been marked as final.
Show 2 replies
-
1. Re: URLRewriteFilter and Ajax4JSF
ilya_shaikovsky Jun 4, 2007 11:43 AM (in response to tazman)Try to use f:view on your pages with contentType="text/xml"
-
2. Re: URLRewriteFilter and Ajax4JSF
tazman Jun 4, 2007 2:35 PM (in response to tazman)Using f:view with contentType="text/xml" produces the correct content-type but the response content is still not valid. Here is the new response I'm getting:
debug[20:15:58,259]: Response with content-type: text/xml;charset=UTF-8 debug[20:15:58,259]: Full response content: <span id="emailError"> ... error[20:15:58,269]: Error parsing XML error[20:15:58,269]: Parse Error: XML Parsing Error: junk after document element
The respsonse doesn't have either XML preamble or html tag. Why doesn't ajax4jsf generate these?
This is the rewrite rule I'm trying to execute:<rule> <from>^/article/(.+)$</from> <to>/article.seam?id=$1</to> </rule>
According to the UrlRewriteFilter manual, this rule internally forwards the request by callingRequestDispatcher rq = request.getRequestDispatcher([to value]); rq.forward(request, response);
Any help is appreciated.
tazman