6 Replies Latest reply on Oct 15, 2009 9:32 AM by guus vorsterman

    commandbutton and oncomplete

    guus vorsterman Newbie

      Hello,
      I have this commandbutton:

      <a:commandButton id="update" value="#{messages.save}"
       action="#{partyHome.update}" rendered="#{partyHome.managed}"
       oncomplete="javascript:refresh()" />
      


      javascript function:

      function refresh() {
       window.opener.refreshTable('${param.tableId}');
       window.close();
      }
      



      How can I check in oncomplete if there are no jsf error messages?
      So that the javascript function is not called until all input is valid.