我想知道爲什麼,當我在inputTextarea中輸入某些內容時,不會更新輔助bean。 當我打印出結果時,它返回「」。 System.out.println(devoir.lstQuestions.get(0).getReponse());顯示「」;在jsf中設置集合屬性
<ui:repeat value="#{devoirController.devoir.lstQuestions}" var="question" />
<h:inputTextarea value="#{question.reponse}" id="reponse">
</h:inputTextarea>
</ui:repeat>
只是一個觀察 - 所有這些inputTextAreas將具有相同的ID。 ID = 「#{} question.reponse」? :-) – 8bitjunkie 2012-07-25 09:11:30