I am trying to execute an action
through commandButton
inside a dataTable
, but the action
is not invoked when the commandButton
is placed inside the datatable as shown below
<h:form>
<h:dataTable value="#{bean.list}" var="item">
<h:column>
<h:commandButton value="submit" action="#{bean.submit}" />
</h:column>
</h:dataTable>
</h:form>
When I move the commandButton
out of dataTable
, the action
is successfully executed. What is the problem when commandButton
is inside datatable? The commandLink
has the same problem.