如何使用primefaces从数据表内的commandbutton更新outputpanel

如何使用primefaces从数据表内的commandbutton更新outputpanel,primefaces,Primefaces,但datatable中的commandbutton(myButtonId)不会更新outputPanel。我找到了这些建议并尝试了以下几点:, update=“:myForm:myOutputPanel” update=“@myForm” update=“:myOutputPanel” 但是没有一个有效 Commandbutton with id("myButtonId2") works fine. I mean it updates "myOutputPanel" 下面是代码片段。。。 /

但datatable中的commandbutton(myButtonId)不会更新outputPanel。我找到了这些建议并尝试了以下几点:, update=“:myForm:myOutputPanel” update=“@myForm” update=“:myOutputPanel”
但是没有一个有效

Commandbutton with id("myButtonId2") works fine. I mean it updates "myOutputPanel" 
下面是代码片段。。。
//一些东西
试着把你的
放在

并添加一个“widgetVar”属性

例如:

只需使用
update=“@widgetVar(var)”直接更新面板

尝试将
放入

并添加一个“widgetVar”属性

例如:

只需使用
update=“@widgetVar(var)”直接更新面板

尝试将
放入

并添加一个“widgetVar”属性

例如:

只需使用
update=“@widgetVar(var)”直接更新面板

尝试将
放入

并添加一个“widgetVar”属性

例如:

只需使用
update=“@widgetVar(var)”

Here is the snippet...
 <h:form id="myForm" prependId="false">
      <p:panel id="myPanel">
         <p:dataTable id="myDatatable">
            <p:column style="width:4%">  
              <p:commandButton id="myButtonId" actionListener="#{bean.showPanel}" update="myOutputPanel"/>
            </p:column>
         </p:dataTable>
         <p:commandButton id="myButtonId2" update="myOutputPanel"/>
        </p:panel>

     <p:outputPanel id="myOutputPanel" rendered="#{bean.show}">
      //some stuff
     </p:outputPanel>