hungsama / struts2-jquery

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

sj:select with autocomplete does not get neither style nor values #1031

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build a simple json select with css-class (to have red backgroud color and 
width of 250px) applied to it
2. Refresh the page : it works. The select is in good size and color. It also 
gets the value and displays the right name.
3. Add autocomplete="true" option
4. Refresh the page. The component is empty and white with default width. The 
json list is well loaded and available both with the select icon and text entry.

What is the expected output? What do you see instead?
Should wait the same output between the 2 cases.

Which struts2 version?
2.3.4

Which struts2-jquery plugin version?
3.6.1

Please provide any additional information below.
<sj:select 
    href="%{url_bank}"
    id="auto_bank" 
    name="bankid" 
    multiple="false"
    selectBoxIcon="true"
    emptyOption="true"
    list="banksList"
    listValue="name" 
            listKey="id"
            loadingText="true"
            cssClass="mandatory" 
/>     works

<sj:select 
    href="%{url_bank}"
    id="auto_bank" 
    name="bankid" 
    multiple="false"
    selectBoxIcon="true"
    autocomplete="true"
    emptyOption="true"
    list="banksList"
    listValue="name" 
            listKey="id"
            loadingText="true"
            cssClass="mandatory" 
/>     doesn't work

Original issue reported on code.google.com by hacotjer...@gmail.com on 23 Aug 2013 at 4:52

GoogleCodeExporter commented 9 years ago
With autoselect="true" a jQuery plugin was activated which add serveral classes.
Inspect this classes an overwrite this in costume css definition.

Original comment by johgep on 24 Sep 2013 at 6:53