我用
<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"/>