This content has been marked as final.
Show 2 replies
-
1. Re: BUG: content type not being set in AJAX response crashes
sergeysmirnov May 14, 2008 5:34 PM (in response to koenhandekyn)Did you turn the richfaces filter to NONE?
-
2. Re: BUG: content type not being set in AJAX response crashes
sergeysmirnov May 14, 2008 6:28 PM (in response to koenhandekyn)OK. I guess, the answer is yes.
Actually, this not a bug, but feature. Thew Behaviour is under the responsibility of JSF itself; not richfaces. Unfortunately, the behaviour is hardcoded there. So, only the way to avoid is writing extended renderKit. It is possible, but not trivial.
The source of the problem is the same that is mentioned there: http://jira.jboss.com/jira/browse/RF-2691
Most likely, you can avoid this problem on the application having a conditional contentType like that:<f:view contentType="#{ajaxContext.ajaxRequest ? 'application/xml+xhtml' : 'text/html'}">