I did find that Andy Power offers a solution at
http://andypowell.org/category/cq5/Here is the listener
function:function(path, definition) { var dialogConfig =
CQ.WCM.getDialogConfig(definition.dialog); dialogConfig.success =
function(form, action){ CQ.Util.reload(CQ.WCM.getContentWindow()); };
dialogConfig.failure = function(form, action){ var resp =
CQ.HTTP.buildPostResponseFromHTML(action.response);
CQ.Ext.Msg.alert(response.headers[CQ.HTTP.HEADER_MESSAGE]); }; var
dialog = CQ.WCM.getDialog(...