【发布时间】:2014-12-10 11:58:09
【问题描述】:
<h:form id="tableForm">
<table id="myTable">
<tr>
<th>HeaderOne</th>
<th>HeaderTwo</th>
<th>HeaderThree</th>
</tr>
<ui:repeat value="#{myBean.List}" var="row">
<tr class="myRows">
<td><input type="text" value="#{row.fieldOne} required="required" /></td>
<td><input type="text" value="#{row.fieldTwo} /></td>
<td><input type="text" value="#{row.fieldThree} /></td>
</tr>
</ui:repeat>
</table>
<p:commandButton id="myButton" value="Load" action="#{myBean.load}" process="@this" update="myTable" />
</h:form>
我想从我的 bean 中将一些东西加载到我的 inputFields 中,但是当我按下保存时有一个字段是必需的。所以我必须将进程设置为@this。
之后我希望更新我的表格。但我不工作。
我做错了什么?
【问题讨论】:
标签: html jsf primefaces