struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (WW-2275) autocompleter tag doesn't send multibyte characters correctly
Date Thu, 01 Nov 2007 13:42:42 GMT

     [ 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.


Mime
View raw message