Minimal example dialog:
I use this solution:
JSF code:
...
Backing bean code:
public void saveTable() { RequestContext rc = RequestContext.getCurrentInstance(); rc.execute("PF('dlgModify').hide()"); }