Как обновить страницу после закрытия диалога p:
У меня есть диалог ниже:
<h:form id="r1">
<p:commandButton value="Basic" type="button" onclick="PF('dlg1').show();" />
<p:dialog header="Basic Dialog" widgetVar="dlg1">
<h:outputText id="test" value="Welcome to PrimeFaces" />
</p:dialog>
</h:form>
Как я могу обновить страницу JSF после закрытия диалога?