gigaZhang / struts2-jquery

Automatically exported from code.google.com/p/struts2-jquery
0 stars 0 forks source link

Can't select value for a select box with autocomplete and json #1032

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1. Launch Autocompleter (Select Box) in the showcase
2. Type he for instance in the "Select Box with JSON Result as Autocompleter"
3. Try to select "La Rochelle Gifts".

What is the expected output? What do you see instead?
We cannot select the choice getting 2 javascript errors :
ReferenceError: select is not defined
TypeError: o.nodeName is undefined

Which struts2 version?
Yours

Which struts2-jquery plugin version?
3.6.1

Please provide any additional information below.
This used to work on 3.5.1

Original issue reported on code.google.com by hacotjer...@gmail.com on 29 Aug 2013 at 12:27

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 24 Sep 2013 at 7:03

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/struts2-jquery/source/detail?r=1854

Original comment by johgep on 24 Sep 2013 at 7:20

GoogleCodeExporter commented 9 years ago
The patch does not solve all the problem.

Il you type a not existing value, you will have the error below

Original comment by jflefeb...@sopragroup.com on 25 Sep 2013 at 9:18

Attachments:

GoogleCodeExporter commented 9 years ago
Line 58 of combobox.js (var matcher = new RegExp( "^" + 
$.ui.autocomplete.escapeRegex( $(this).val() ) + "$", "i" ))

must be replaced by 

var matcher = new RegExp( "^" + $.ui.autocomplete.escapeRegex( this.input.val() 
) + "$", "i" ),

Original comment by jflefeb...@sopragroup.com on 25 Sep 2013 at 3:57

GoogleCodeExporter commented 9 years ago
Thank you for testing and post the solution.

http://code.google.com/p/struts2-jquery/source/detail?r=1855

Original comment by johgep on 25 Sep 2013 at 5:59

GoogleCodeExporter commented 9 years ago
Can you please tell me when you plan to release this patch
Thanks

Original comment by jflefeb...@sopragroup.com on 7 Nov 2013 at 7:57

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 15 Dec 2013 at 6:46

GoogleCodeExporter commented 9 years ago

Original comment by johgep on 13 Jan 2014 at 7:25