1
I wanted to know how I send a form using the p:comfirmdialog
.
The idea is to get the message tem certeza ?
, with the options sim
or não
. If you click sim
, then it sends the Form.
<p:commandButton value="destruir o mundo" >
<p:confirm header="confirmação" message="tem certeza ?" icon="ui-icon-alert" />
</p:commandButton>
<p:confirmDialog global="true" Effect="fade" hideEffect="fade">
<p:commandButton value="sim" type="submit" icon="ui-icon-check" />
<p:commandButton value="No" type="button" icon="ui-icon-close" />
</p:confirmDialog>
these commands are already inside the form, so I wanted, when confirming the form to be sent.
I tried to change the type to 'button', I left no type and nothing.
Thank you to all who help
Post your code to better help you.
– Roknauta
I voted to reopen, because I believe I can provide an example, even without much knowledge of Primefaces. I believe it was hasty to close, but everything that is closed can be reopened :)
– Guilherme Nascimento
@Guilhermenascimento I gave my vote to reopen this question. It could help to reopen this other?
– Victor Stafusa
Good evening, the answer solved your problem?
– Guilherme Nascimento