我需要你的帮助来刷新commandButton
点击上的Dialog内容,因为它默认保留旧值并且不刷新。我的代码是:
<h:form id="Requests">
<p:dataTable id="PendingRequests" var="hr" value="#{hrd.pendingRequests}">
<p:commandButton id="submitbutton" update=":Requests:#{hr.dialogueName} "
oncomplete="PF('#{hr.certificateDialogue}').show()">
<f:setPropertyActionListener value="#{hr}" target="#{hrd.selectedRequest}"/>
</p:commandButton>
</p:dataTable>
<p:dialog id="cert1" header="cert1" widgetVar="cert1" modal="true" showEffect="fade"
hideEffect="fade" resizable="true">
<p:outputPanel id="SS1" style="text-align:center;" autoUpdate="true">
</p:outputPanel>
</p:dialog>
<p:dialog id="cert2" header="cert2" widgetVar="cert2" modal="true" showEffect="fade"
hideEffect="fade" resizable="true">
<p:outputPanel id="SS2" style="text-align:center;" autoUpdate="true">
</p:outputPanel>
</p:dialog>
</h:form>