【发布时间】:2015-08-07 04:14:17
【问题描述】:
我正在尝试在dataTable 中执行action 到commandButton,但是当commandButton 被放置在数据表中时不会调用action,如下所示
<h:form>
<h:dataTable value="#{bean.list}" var="item">
<h:column>
<h:commandButton value="submit" action="#{bean.submit}" />
</h:column>
</h:dataTable>
</h:form>
当我将commandButton 移出dataTable 时,action 已成功执行。 commandButton 在数据表中时有什么问题? commandLink 也有同样的问题。
【问题讨论】:
标签: jsf jsf-2 datatable commandbutton commandlink