You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Scott Nesbitt (JIRA)" <ji...@apache.org> on 2007/05/14 16:58:43 UTC
[jira] Updated: (WW-1878) Autocompleter does not work with
three-char string
[ https://issues.apache.org/struts/browse/WW-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Nesbitt updated WW-1878:
------------------------------
This happens to me consistently every time. Is your searchType set to substring?
> 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.