I am trying without success to call an dialog from a p:commandButton and execute the action after the dialog is closed. Is such a thing possible?
For example:
Code: Select all
<p:commandButton ajax="true" onclick="dlgWork.show();" action="#{myBean.myAction}" value="Okdok">
Why do i need this? I need the dialog to work with a few buttons to gather the same information. I do not want to duplicate the dialog for every button.
Im on JSF 2 - Primefaces 2.1
Thanks.