Author: pyaschenko
Date: 2009-03-06 10:20:34 -0500 (Fri, 06 Mar 2009)
New Revision: 12861
Modified:
trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
Log:
https://jira.jboss.org/jira/browse/RF-6476
part 1
Modified: trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js
===================================================================
--- trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2009-03-06 15:01:39 UTC
(rev 12860)
+++ trunk/framework/impl/src/main/javascript/ajaxjsf/JSFAJAX.js 2009-03-06 15:20:34 UTC
(rev 12861)
@@ -1549,18 +1549,30 @@
getQueryString : function() {
var qs = "";
var iname ;
+ var querySegments = [];
+ var paramName;
for ( var k in this._query ){
if(typeof Object.prototype[k] == 'undefined'){
iname = this._query[k];
+ paramName = this._encode(k);
if( iname instanceof Object ){
for ( var l=0; l< iname.length; l++ ) {
- qs += this._encode(k) + "=" + this._encode(iname[l]) +
"&";
+ querySegments.push(paramName);
+ querySegments.push("=");
+ querySegments.push(this._encode(iname[l]));
+ querySegments.push("&");
}
} else {
- qs += this._encode(k) + "=" + this._encode(iname) + "&";
+ querySegments.push(paramName);
+ querySegments.push("=");
+ querySegments.push(this._encode(iname));
+ querySegments.push("&");
}
}
}
+
+ qs = querySegments.join("");
+
LOG.debug("QueryString: "+qs);
return qs;
},