我只是将我的项目移动到JSF2.0,并且我遇到了这个问题。我只是不能得到一个h:repeat内的inputTextarea。重复之外,伟大的作品...JSF 2.0 - 问题'h:inputTextarea'嵌套在'h:repeat'中
有没有人知道这个解决方案?我猜这是一件简单的事情。
的观点:(只要紧)
<ui:repeat value="#{pub.commentList}" var="com">
<h:panelGroup>
<h:form id="pub" >
<h:inputTextarea id="comment2" value="#{classController.msgComment}" />
<div>
<h:commandButton type="submit" value="Postar" action="#{classController.saveComment}" />
</div>
</h:form>
</h:panelGroup>
</ui:repeat>
塔豆是一切正常。只需获取/设置属性“msgComment”即可。
感谢您的回复!
您将h:inputText的所有实例绑定到一个属性。我看不出这会如何工作。无论如何,你究竟做了什么? –