JBoss Rich Faces SVN: r23230 - branches/enterprise/3.3.1.SP2_RFPL-2808/framework/impl/src/main/javascript/ajaxjsf.
by richfaces-svn-commits@lists.jboss.org
Author: ivassile
Date: 2013-04-16 10:56:21 -0400 (Tue, 16 Apr 2013)
New Revision: 23230
Modified:
branches/enterprise/3.3.1.SP2_RFPL-2808/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
branches/enterprise/3.3.1.SP2_RFPL-2808/framework/impl/src/main/javascript/ajaxjsf/sarissa.js
Log:
Change for https://issues.jboss.org/browse/RFPL-2808
Modified: branches/enterprise/3.3.1.SP2_RFPL-2808/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- branches/enterprise/3.3.1.SP2_RFPL-2808/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2013-04-16 14:49:47 UTC (rev 23229)
+++ branches/enterprise/3.3.1.SP2_RFPL-2808/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2013-04-16 14:56:21 UTC (rev 23230)
@@ -1029,7 +1029,7 @@
}
// Replace client-side hidden inputs for JSF View state.
var idsSpan = req.getElementById("ajax-view-state");
- LOG.debug("Hidden JSF state fields: "+idsSpan);
+ //LOG.debug("Hidden JSF state fields: "+idsSpan);
if(idsSpan != null){
// For a portal case, replace content in the current window only.
var namespace = options.parameters['org.ajax4jsf.portlet.NAMESPACE'];
Modified: branches/enterprise/3.3.1.SP2_RFPL-2808/framework/impl/src/main/javascript/ajaxjsf/sarissa.js
===================================================================
--- branches/enterprise/3.3.1.SP2_RFPL-2808/framework/impl/src/main/javascript/ajaxjsf/sarissa.js 2013-04-16 14:49:47 UTC (rev 23229)
+++ branches/enterprise/3.3.1.SP2_RFPL-2808/framework/impl/src/main/javascript/ajaxjsf/sarissa.js 2013-04-16 14:56:21 UTC (rev 23230)
@@ -58,6 +58,8 @@
/** @private */
Sarissa._SARISSA_IS_IE = document.all && window.ActiveXObject && navigator.userAgent.toLowerCase().indexOf("msie") > -1 && navigator.userAgent.toLowerCase().indexOf("opera") == -1;
/** @private */
+Sarissa._SARISSA_IS_IE9 = Sarissa._SARISSA_IS_IE && (parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf("MSIE")+5))) >= 9;
+/** @private */
Sarissa._SARISSA_IS_OPERA = navigator.userAgent.toLowerCase().indexOf("opera") != -1;
if(!window.Node || !Node.ELEMENT_NODE){
Node = {ELEMENT_NODE: 1, ATTRIBUTE_NODE: 2, TEXT_NODE: 3, CDATA_SECTION_NODE: 4, ENTITY_REFERENCE_NODE: 5, ENTITY_NODE: 6, PROCESSING_INSTRUCTION_NODE: 7, COMMENT_NODE: 8, DOCUMENT_NODE: 9, DOCUMENT_TYPE_NODE: 10, DOCUMENT_FRAGMENT_NODE: 11, NOTATION_NODE: 12};
@@ -453,7 +455,7 @@
//==========================================
// Common stuff
//==========================================
-if(!window.DOMParser){
+if(!window.DOMParser || Sarissa._SARISSA_IS_IE9){
if(Sarissa._SARISSA_IS_SAFARI){
/*
* DOMParser is a utility class, used to construct DOMDocuments from XML strings
@@ -482,7 +484,7 @@
}
}
-if((typeof(document.importNode) == "undefined") && Sarissa._SARISSA_IS_IE){
+if((typeof(document.importNode) == "undefined") || Sarissa._SARISSA_IS_IE9){
try{
var importTable = {
TBODY: ['<table>', '</table>' ],
@@ -605,7 +607,7 @@
}
return s;
};
-if(!window.XMLSerializer && Sarissa.getDomDocument && Sarissa.getDomDocument("","foo", null).xml){
+if((!window.XMLSerializer || Sarissa._SARISSA_IS_IE9) && Sarissa.getDomDocument && Sarissa.getDomDocument("","foo", null).xml){
/**
* Utility class to serialize DOM Node objects to XML strings
* @constructor