This content has been marked as final. Show 2 replies
Try to use f:view on your pages with contentType="text/xml"
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 calling
RequestDispatcher rq = request.getRequestDispatcher([to value]); rq.forward(request, response);
Any help is appreciated.