1

<sj:autocompleter>在我的jsp页面中使用;每当我第一次从下拉列表中选择一个元素并单击提交然后它工作正常但是当我再次尝试从列表中选择一个元素时,我无法选择一个元素。

<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>

但是当我使用s:select而不是sj:autocompleter我能够正常重新选择时:问题只出现在我使用sj:autocompleter.

4

0 回答 0