Author: nbelaevski
Date: 2007-10-31 15:17:55 -0400 (Wed, 31 Oct 2007)
New Revision: 3658
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/ConfigurableXMLFilter.java
Log:
http://jira.jboss.com/jira/browse/RF-1006
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/ConfigurableXMLFilter.java
===================================================================
---
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/ConfigurableXMLFilter.java 2007-10-31
19:16:56 UTC (rev 3657)
+++
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/ConfigurableXMLFilter.java 2007-10-31
19:17:55 UTC (rev 3658)
@@ -104,14 +104,18 @@
*/
protected HtmlParser getParser(String mimetype, boolean isAjax,
String viewId) {
- HtmlParser parser = null;
- if (isAjax || isForcexml()) {
- parser = parsers.getParser(viewId, mimetype);
- } else if (mimetype.startsWith(TEXT_HTML)
- || mimetype.startsWith(APPLICATION_XHTML_XML)) {
- parser = new FastHtmlParser();
- }
- return parser;
+
+ HtmlParser parser = null;
+
+ if (isAjax || mimetype.startsWith(TEXT_HTML) ||
mimetype.startsWith(APPLICATION_XHTML_XML)) {
+ if (isAjax || isForcexml()) {
+ parser = parsers.getParser(viewId, mimetype);
+ } else {
+ parser = new FastHtmlParser();
+ }
+ }
+
+ return parser;
}
/*