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

    commandbutton and oncomplete

    guus vorsterman Newbie

      I have this commandbutton:

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

      javascript function:

      function refresh() {

      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.