Jsf h:dataTable中的h:commandButton不';ajax渲染后无法工作
我在h:dataTable中有一个h:commandbutton,在我的应用程序中有一个下拉列表,其中包含更新h:dataTable的ajax命令。但当在我的数据表中进行更新时,我的命令按钮停止工作 这是我的h:dataTable:Jsf h:dataTable中的h:commandButton不';ajax渲染后无法工作,jsf,datatable,commandbutton,Jsf,Datatable,Commandbutton,我在h:dataTable中有一个h:commandbutton,在我的应用程序中有一个下拉列表,其中包含更新h:dataTable的ajax命令。但当在我的数据表中进行更新时,我的命令按钮停止工作 这是我的h:dataTable: <h:dataTable value="#{viewBean.requestList}" var="o" id="request_table" class="table table-striped table-bordered table-hover" cel
<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>
(...)
编辑
(...)
这是我的下拉列表:
<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>
@BalusC我刚看到jquery被标记了。。而(在ajax渲染后不起作用)总是发生在jquery中。。所以我把链接贴到了他身上。。但是现在jquery标记已经不在这里了。。所以我将删除我的评论。。不是每个人都知道如何使用标签。请始终查看代码:),如果您再次单击,它会工作吗?检查点8:您是否在每一列中都有表格?请给所有表格提供身份证。难道你不能有一个表单然后呈现=“:myForm:request_table”我在按钮列中只有表单,在其他列中没有表单。我尝试从中渲染,但它无法解决我的问题。