Clear form in p:dialog on close after failed action/method call
Try this:
Put your dialog inside a form (dialogInputForm)
Add the attribute update=":dialogInputForm"
- Nest the resetInput tag within the button that opens the dialog and specify the target as the just created form
The commandButton:
<p:commandButton process="@this" actionListener="#{bean.prepare}" update=":dialogInputForm" oncomplete="thirdPartyDialog.show()" value="Open Input Dialog" >
<p:resetInput target=":dialogInputForm" />
</p:commandButton>
And the form which contais the dialog
<h:form id="dialogInputForm" >
... your dialog ...
</h:form>