Jsf Primefaces CommadButton未更新数据表

Jsf Primefaces CommadButton未更新数据表,jsf,primefaces,datatable,Jsf,Primefaces,Datatable,我的xhtml中有下一个结构 <p:panel> <p:acordeonPanel> <p:tab> <h:form> <table> <tr>td><commandButton action="#{myBean.searchAnimals}"update=":form:partidos" ></td></tr>

我的xhtml中有下一个结构

<p:panel>
    <p:acordeonPanel>
      <p:tab>
      <h:form>
      <table>
          <tr>td><commandButton action="#{myBean.searchAnimals}"update=":form:partidos" ></td></tr>
      </table>
      </h:form>
      </p:tab>
    </p:acordeonPanel>
</p:panel>
<p:panel>
<h:form id="form">
    <p:dataTable id="partidos" value="#{myBean.foundAnimals}">
</h:form>
....

td>
....
方法searchAnimals()可以,它返回动物项,但dataTable不刷新,但在java代码(managedBean)中,ArrayList包含这些项。 我能做什么?谢谢

编辑:
我正确地使用了de h:和p:后缀(我想是的),代码是完整代码的一部分,但它是一个不能正确工作的片段。在第一个面板中,我有一个过滤器控件(按类别、按日期等),命令按钮的功能是调用一个对数据库执行查询的函数,这个函数很好,因为它用结果集(myBean.foundAnimals)填充ArrayList,但这些项不会在视图(dataTable)上刷新:(

您应该使用
来处理这两种情况,并将commandButton中的渲染值设置为
rendered=“:form”
,以实现在单击commandButton后重新渲染表单。

这是一种伪代码方言,我不明白。真正的代码在哪里?