autocompleter tag doesn't send multibyte characters correctly
-------------------------------------------------------------
Key: WW-2275
URL: https://issues.apache.org/struts/browse/WW-2275
Project: Struts 2
Issue Type: Bug
Affects Versions: 2.0.9
Environment: JDK5 Tomcat 5.5 IE7/FireFox 2
Reporter: sakamoto osamu
when set loadOnTextChange property to true, autocompleter tag send current
input to server.
BUT input text isn't url encoded.
So when i put multibyte characters(ie. Japanese), i can't get input text on
server side.
I resolved this issue by changing
...org/apache/struts2/static/dojo/struts/widget/ComboBox.js LINE 410
--------------------------
startSearchFromInput: function() {
var searchStr = this.textInputNode.value;
if(this.loadOnType) {
if(searchStr.length >= this.loadMinimum) {
var nuHref = this.dataUrl + (this.dataUrl.indexOf("?") > -1 ? "&" :
"?");
// HERE!! url encode
// nuHref += this.name + '=' + searchStr;
nuHref += this.name + '=' + encodeURIComponent(searchStr);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.