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/04/10 18:06:51 UTC

[jira] Created: (WW-1878) Autocompleter does not work with three-char string

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


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.


[jira] Updated: (WW-1878) Autocompleter does not work with three-char string

Posted by "Scott Nesbitt (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Updated: (WW-1878) Autocompleter does not work with three-char string

Posted by "Scott Nesbitt (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Resolved: (WW-1878) Autocompleter does not work with three-char string

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-1878.
---------------------------------

       Resolution: Cannot Reproduce
    Fix Version/s: 2.1.0

I just tested this on the autocompleter example on showcase and it seems to be working fine.

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


[jira] Commented: (WW-1878) Autocompleter does not work with three-char string

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40988 ] 

Musachy Barroso commented on WW-1878:
-------------------------------------

There is a semicolon on your jsp, I will assume it is a typo :)

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


[jira] Commented: (WW-1878) Autocompleter does not work with three-char string

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40989 ] 

Musachy Barroso commented on WW-1878:
-------------------------------------

Ok, I'm on 2.1 so that might be a difference:

I type "a", nothing happens
I type "aa", drop down shows 6 entries
I type "aa ", drop down shows 6 entries
I type "aa b", drop down shows 6 entries


It seems to work. Please note that there are spaces on your JSON values, so you have to type those spaces on the textbox to match the options. Any other idea?

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


[jira] Commented: (WW-1878) Autocompleter does not work with three-char string

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-1878?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_40987 ] 

Musachy Barroso commented on WW-1878:
-------------------------------------

I didn't set the search type, which is "substring" by default. I will try again in showcase, using your exact jsp section and returning the JSON you provided and see if I can replicate it. I will let you know.

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