Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 3.2, EE-3.2.0.BETA
-
Fix Version/s: EE-3.2.0.GA, 3.3
-
Component/s: ACE-Components, Sample Apps
-
Labels:None
-
Environment:Icefaces3 trunk revision#33280
Server: tomcat6
Browser: FF3.6, IE7 & GoogleChrome24
Last Known Working Revision: Unknown
-
Assignee Priority:P1
Description
AutoComplete - All - (All browsers) - when using the ' (apostrophe) character on autocomplete, JS syntax error below occurs:
Error: SyntaxError: missing ) after argument list
Source File: http://localhost:8080/showcase/showcase.jsf?grp=aceMenu&exp=autoCompleteEntryBean
Line: 0, Column: 60
Source Code:
completers["inputForm:autoComplete"];instance.updateField(''S-Hertogenbosch', true);})();
To Reproduce:
-Build and deploy showcase app on Tomcat7
-Navigate to showcase page and go to any AutoComplete feature page
-input ' (apostrophe) char to render autocompleteEntry (Note: In FF18, Chrome24 or IE9, must have error console visible in order to see this error)
-Notice the JS syntax error occur within the error console
Note: Moj 2.1.18 Library was used when this issue was detected
Error: SyntaxError: missing ) after argument list
Source File: http://localhost:8080/showcase/showcase.jsf?grp=aceMenu&exp=autoCompleteEntryBean
Line: 0, Column: 60
Source Code:
completers["inputForm:autoComplete"];instance.updateField(''S-Hertogenbosch', true);})();
To Reproduce:
-Build and deploy showcase app on Tomcat7
-Navigate to showcase page and go to any AutoComplete feature page
-input ' (apostrophe) char to render autocompleteEntry (Note: In FF18, Chrome24 or IE9, must have error console visible in order to see this error)
-Notice the JS syntax error occur within the error console
Note: Moj 2.1.18 Library was used when this issue was detected
There's actually no problem with those demos. The component is still functional and returns results if you type other characters. What happens is that the autocomplete demos use two different lists of cities: /resources/selectinputtext/City-Names.txt and /resources/autocompleteentry/World_Cities_Location_table.txt. The Custom Facet and Lazy Loading demos use the latter, and that list only has one city that contains a single quote character.
If you change the filterMatchMode attribute of the Custom Facet demo to "contains", you'll see a result, which is different from the other demos.