You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Musachy Barroso (JIRA)" <ji...@apache.org> on 2007/11/01 14:42:42 UTC
[jira] Resolved: (WW-2275) autocompleter tag doesn't send multibyte
characters correctly
[ https://issues.apache.org/struts/browse/WW-2275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2275.
---------------------------------
Resolution: Fixed
thanks for the patch!
> 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
> Components: Plugin - Dojo Tags
> Affects Versions: 2.0.9
> Environment: JDK5 Tomcat 5.5 IE7/FireFox 2
> Reporter: sakamoto osamu
> Fix For: 2.1.1
>
>
> 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.