我有使用commandbutton弹出对话框表单的primefaces形式。其中我有两个panelGrid具有相同的条件渲染。一个是不可见的,但不是另一个包含命令按钮,它将使用渲染更新两个panelGrid。我不知道为什么?请帮忙。我只是访客是否无法通过命令按钮实现panelGrid实时渲染?
<p:panelGrid rendered="#{dtWebVoEsstv1s2.academicQuali.size()>0}"
id="panelGrid1s4a5"
styleClass="ui-edb-noneborder-grid">
<p:row>
<p:column><p:commandButton value="verify"
action="approveProfileQualifications"
update="@this, @parent, @([id$=panelGrid1s4a3b1]), @([id$=panelGrid1s4a4]),@([id$=panelGrid1s4a5]), @([id$=customMessage1s4])" />
</p:column>
</p:row>
<!--This cannot be invisible of rendering-->
</p:panelGrid>
<p:panelGrid columns="1" id="panelGrid1s4a3b1" style="border: 1px solid #8c4eea;" >
<ui:repeat styleClass="ui-edb-td-wrap-table ui-edb-header-style"
var="academicQualiDetail" value="#{dtWebVoEsstv1s2.academicQuali}"
rendered="#{dtWebVoEsstv1s2.academicQuali.size()>0}">
<!--this can be invisible after rendering by commandbutton click-->