Author: nbelaevski
Date: 2007-10-31 15:13:29 -0400 (Wed, 31 Oct 2007)
New Revision: 3656
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseXMLFilter.java
Log:
Fixed ignored force_xml configuration in ServletContext
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseXMLFilter.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseXMLFilter.java 2007-10-31
19:09:20 UTC (rev 3655)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/webapp/BaseXMLFilter.java 2007-10-31
19:13:29 UTC (rev 3656)
@@ -88,9 +88,11 @@
+ this.getClass().getName());
}
String forceXmlParameter = config.getInitParameter(FORCEXML_PARAMETER);
+ if (forceXmlParameter == null) {
+ forceXmlParameter = config.getServletContext().getInitParameter(
+ INIT_PARAMETER_PREFIX + FORCEXML_PARAMETER);
+ }
setupForceXml(forceXmlParameter);
- forceXmlParameter = config.getServletContext().getInitParameter(
- INIT_PARAMETER_PREFIX + FORCEXML_PARAMETER);
setMimetype((String) nz(config.getInitParameter(MIME_TYPE_PARAMETER),
"text/xml"));
setPublicid((String) nz(config.getInitParameter(PUBLICID_PARAMETER),
Show replies by date