I want to get a list of all of the existing Ids
from a Quiz Entity
from my backend/database and place that list in a Select/Option using Thymeleaf (so I can bind a Question entity
to that selected Id
, more specifically to bind a Question
to a particular Quiz
).
View Template as my latest failure, I know something is wrong:
<form action="#"
th:action="@{/quiz/add}"
th:object="${quiz}"
method="post">
<tr>
<td>Select Quiz ID:</td>
<td>
<select th:field="*{id}">
<option value=""> -- </option>
<option th:value="${id}"
th:utext="${id}"/>
</select>
</td>
</tr>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…