Author: nbelaevski
Date: 2008-07-31 12:42:30 -0400 (Thu, 31 Jul 2008)
New Revision: 9853
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/nekko/NekkoXMLFilter.java
Log:
https://jira.jboss.org/jira/browse/RF-3605
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/nekko/NekkoXMLFilter.java
===================================================================
---
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/nekko/NekkoXMLFilter.java 2008-07-31
14:34:33 UTC (rev 9852)
+++
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/nekko/NekkoXMLFilter.java 2008-07-31
16:42:30 UTC (rev 9853)
@@ -39,7 +39,7 @@
protected HtmlParser getParser(String mimetype, boolean isAjax, String viewId) {
HtmlParser parser = null;
if( isAjax ){
- parser = getXmlParser();
+ parser = getXmlParser(mimetype);
} else if (mimetype.startsWith(TEXT_HTML) ||
mimetype.startsWith(APPLICATION_XHTML_XML)) {
parser = new FastHtmlParser();
} else {
@@ -74,7 +74,7 @@
* @return
* @throws ServletException
*/
- protected HtmlParser getXmlParser() {
+ protected HtmlParser getXmlParser(String mime) {
// TODO make pool of parsers-transformers.
NekkoParser parser ;
try {
@@ -90,6 +90,7 @@
// parser.setMoveElements(isForcexml());
parser.init();
}
+ parser.setMime(mime);
// TODO - set header scripts/styles filter.
return parser;
}