How can I programmatically trigger onclick/oncompleted event? E.g.
<p:commandButton value="Destroy the World" onclick="confirmation.show()" type="button"/>
<p:confirmDialog message="Are you sure about destroying the world?"
showEffect="bounce" hideEffect="explode"
header="Initiating destroy process" severity="alert" widgetVar="confirmation">
</p:confirmDialog>
I'm trying to trigger onclick="confirmation.show()"
from a backing bean.
I'm using JSF2/Primefaces 2.2.