[ 
https://issues.apache.org/struts/browse/WW-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Scott Nesbitt updated WW-1878:
------------------------------


I removed the extraneous semicolon and am not getting to the spaces.  This 
happens with every set of chars I try at the third character.  I tried reducing 
my JSON to this:

[
        ["NCAAATLANTIC"],
        ["NCAACOAST"],
        ["NCAATEN"],
        ["NCAATWELVE"],
        ["NCAAEAST"],
        ["NCAASKY"],
]

And it still behaves badly.  However, I noticed that it only does this the 
first time the lookup is called in my overlay.  All subsequent times it works 
fine.  If I dismiss and redisplay the overlay, the first time it fails again 
and then works correctly.

Is this an initialization issue?

> Autocompleter does not work with three-char string
> --------------------------------------------------
>
>                 Key: WW-1878
>                 URL: https://issues.apache.org/struts/browse/WW-1878
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.6
>         Environment: Solaris 10, Weblogic 9.2.1
>            Reporter: Scott Nesbitt
>         Assigned To: Musachy Barroso
>             Fix For: 2.1.0
>
>
> I am using the autocompleter tag like this:
>    <s:url id="autoorgs" action="LookupOrgs"/>
>          <s:autocompleter name="org"
>                           id="org"  
>                           keyName="orgKey"
>                           theme="ajax"
>                           href="%{#autoorgs}"
>                           cssStyle="width:450px;"
>                           dropdownHeight="170";
>                           loadMinimumCount="2"
>                           loadOnTextChange="true"
>                           autoComplete="false"
>                           showDownArrow="false"
>                           searchType="substring"
>                           forceValidOption="true"/>
> When I type a two-char string in the text box it works
> fine: six items in the dropdown.  However, when I
> add another char there is nothing in the dropdown.
> When I add a fourth char I get six items again.  When I 
> backspace to three chars, I see six items in the
> dropdown.
> GET /enames2/html/LookupOrgs.action?org=nca HTTP/1.1
> Using fiddler I verified the same JSON is getting sent
> for both ways to get a three char string:
> [ 
>         ["NCAA BKBL ATLANTIC 10 CONF-EAST"],
>         ["NCAA BKBL ATLANTIC COAST CONF"],
>         ["NCAA BKBL BIG 10 CONF"],
>         ["NCAA BKBL BIG 12 CONF"],
>         ["NCAA BKBL BIG EAST CONF"],
>         ["NCAA BKBL BIG SKY CONF"],
> ] 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to