我用
<sj:select />
有时会得到数据。有时它不会,然后我需要刷新页面以填充选择框。 请帮帮我......
用于填充类别
<s:url var="categoryUrl" action="returnTrainings"/>
<sj:select
href="%{categoryUrl}"
id="category" cssClass="employeeinput"
onChangeTopics="reloadsecondlist"
onAlwaysTopics="reloadsecondlist"
name="categoryNameForTraining"
list="distinctCategory"
headerKey="0"
headerValue="Select a Category"/>
用于填充培训
<sj:select
href="%{categoryUrl}"
id="selectWithReloadTopic" cssClass="employeeinput"
formIds="TrainList"
reloadTopics="reloadsecondlist"
name="traininglist.hcmoTrainingListId" list="selectedtrainingNames"
listKey="hcmoTrainingListId"
listValue="trainingName"
headerKey="0"
headerValue="Select a Training"/>