I have a dialog with OK and Cancel button.
I want the OK button to close the dialog after my business logic succeed, but show an error msg and leave the dialog open when something is wrong.
How can I do this?
Now I have:
<h:commandButton value="#{bundle.OK}" action="#{vcBean.addVC}" />