title: Richfaces validation error on oncomplete script
body: <p>i have the jsfunction</p>
  
  <pre><code>&lt;a4j:jsFunction action="#{myBean.action}"
    data="#{myBean.data}" render="@form" execute="@form" name="openConfirm"  
  onbeforedomupdate="openConfirmDialog(event.data);"&gt;&lt;/a4j:jsFunction&gt;
  </code></pre>
  
  <p>I need open a confirm dialog(on the onbeforedomupdate, this works.. but open the dialog for all calls) I really need open the dialog form only if the jsf submit was validated. the validation errors shows when the form was not validated. </p>
  
  <p>Whats the best way, to identify in the script if the JSF cycle returns validations errors? </p>
  
  <p>i need something similar to onbeforedomupdate="if (event.validationError==false)showDialog();"</p>
  
  <p>thanks a lot,</p>