【发布时间】:2019-02-24 04:33:56
【问题描述】:
有人知道为什么我的下拉选项没有呈现在我的表单中吗?我有这个 html 表单渲染,但选项没有出现。我还有一个模型中的表单输入字段,列为私有字符串业务类;然后也是它的getter和setter。我错过了什么吗?
<div class="row">
<label for="businessClass" >Business Class: </label>
<select class="select-2 form-control" field="*{businessClass}" id="businessClass" >
<option value="Animal Services">Animal Services</option>
<option value="Arts Entertainment">Arts & Entertainment</option>
<option value="Auto Services">Auto Services</option>
<option value="bonds">Bonds</option>
</select>
【问题讨论】:
标签: java spring thymeleaf render dropdown