2 Replies Latest reply on May 14, 2008 6:28 PM by Sergey Smirnov

    BUG: content type not being set in AJAX response crashes fir

    koen handekyn Newbie

      when putting <f:view contentType="text/html"/> in a page, the initial page response correctly returns text/html content type.

      richfaces generated javascript than does NOT appear inside a CDATA block, where as to the default case the javascript is escaped inside a CDATA block when the content type is text/xhtml.

      HOWEVER, after a partial page update, richfaces generated javascript is still NOT inside a CDATA block while the response header returns text/xml as a contentType.

      this crashes firefox as the returned fragment is not XML compliant and the javascript hence is not parsed correctly.