1 Reply Latest reply on Aug 3, 2010 7:08 AM by Ilya Shaikovsky

    oncomplete should not be call if validation fails

    praveen jain Novice

      i have a ajax:commandButton with action=#{} and oncomplete="jsfunction" also i have validation on some fields

      so if validation fails then it didnt call action but it execute the JS function written on oncomplete.

       

      so i want if validation failed then oncomplete should not be executed, how can i acchive that?