title: JSF update schedule and hide dialog primefaces
body: <p>I try to update my schedule after bean validation complete and hide dialog but it is not working.Hide dialog it is ok but not update.</p>
  
  <pre><code>&lt;p:commandButton id="addButton" value="Save" 
  actionListener="#{planningController.addEvent}" 
  oncomplete="if (!args.validationFailed){PF('eventDialog').hide(); PF('schedule').update();}"/&gt;
  &lt;/p:commandButton&gt;
  </code></pre>