<sj:autocompleter> dropdown reselection not working

232 Views Asked by At

I am using <sj:autocompleter> in my jsp page; whenever I select an element from dropdown list first time and click on submit then it works fine but when I again try to select an element from the list then, I am not able to select an element .

<td width="20%">
    <sj:autocompleter id="selectedHierCode" 
                    name="selectedHierCode" 
                    list="%{hierarchyMap}" 
               listValue="value" 
                 listKey="key" 
           selectBoxIcon="true" 
                   value="20" 
             placeholder="Select Hierarchy" 
             collapsible="False" 
                cssStyle="width:500px !important;" />
     <s:hidden name="screenModeCreate" id="screenModeCreate" value="true" />
</td>
<s:if test="%{#session['LoginVO'].selectedDeptId==2}">
    <s:hidden name="ynfileUpload" id="ynfileUpload" value="9"></s:hidden>
    <td width="20%"><s:label key="fileupload.singlefileupload" />
        <s:checkbox id="singleFileUpload" name="singleFileUpload" onclick="showFileTd(this);"></s:checkbox>
    </td>
    <td width="20%">
        <div id="fileTd">
            <fieldset>
                <legend>
                    <s:label key="fileupload.fileupload" cssClass="validate[required]"></s:label>
                </legend>
                <div><s:file name="fileUpload" id="fileUpload" style="float:left;" onchange="checkFileExtension();" />
                </div>
            </fieldset>
        </div>
    </td>
</s:if>
<s:else>
    <s:hidden name="ynfileUpload" id="ynfileUpload" value="10"></s:hidden>
</s:else>
<td width="30%">
    <%-- <sj:submit button="true" targets="masterCreationScreen" formIds="hierarchySelection"></sj:submit>--%>
    <sj:a id="ajaxformlink" cssClass="mdm-submit" onClickTopics="buttonClicked" 
          button="true" inidicator="indicator" effect="highlight">Submit</sj:a>

But when I use s:select instead of sj:autocompleter I am able to do reselection normally: the problem only comes when I use sj:autocompleter.

0

There are 0 best solutions below