hungsama / struts2-jquery

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

sj:autocompleter works only if select the item twice #948

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I'm using sj:autocompleter to select cities in a country. Because I have to 
select between some thousand and thousand names, I preferred use this component 
instead of sj:select to reduce the problems at the client side.
But this component gave me a big problem...
When I select a city's name I trigger an onSelectedTopics event to load some 
contextual data (Postal ID, etc).

What steps will reproduce the problem?
1. Type into text sJ:autocompleter field
2. Select a name between showed names
3. An onSelectedTopics is fired and call a reoladTopics in a sj:select
4. the sj:select isn't populated because the parameter given by 
sj:autocompleter is empty

What is the expected output? What do you see instead?
I expect to select once the value based on text autocompleter's field to see 
the related variable with a not null (or old) value

Which struts2 version?
struts2-core-2.3.1.2

Which struts2-jquery plugin version?
struts2-jquery-plugin-3.5.1

Please provide any additional information below.

Original issue reported on code.google.com by Alessand...@gmail.com on 14 Feb 2013 at 2:42