I have a h:commandbutton in h:dataTable, and in my application have a dropdown that have ajax command to update h:dataTable. But when make update in my dataTable my commandbutton stop work.
this is my h:dataTable:
<h:dataTable value="#{viewBean.requestList}" var="o" id="request_table" class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
(...)
<h:column>
<f:facet name="header">Edit</f:facet>
<h:form>
<div style="text-align: center">
<h:panelGroup id="teste_button">
<h:commandButton title="Edit" class="btn btn-info btn-sm" action="#{navigationBean.toEdit()}" rendered="#{true}">
<span class="glyphicon glyphicon-pencil"></span>
<f:param name="selectedRequestID" value="#{o.id}" />
<f:param name="itemMenuAnterior" value="#{viewBean.itemActual}" />
</h:commandButton>
</h:panelGroup>
(...)
</div>
</h:form>
</h:column>
</h:dataTable>
this is my dropdown:
<h:form>
<h:selectOneMenu value="#{viewBean.itemActual}" id="select_filter" class="form-control">
<f:selectItems value="#{viewBean.items}" var="itematual" itemLabel="#{itematual}"/>
<f:ajax listener="#{viewBean.itemChange(event)}" render="request_table" onevent="functionName"/>
</h:selectOneMenu>
</h:form>