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

    oncomplete should not be call if validation fails

    ipraveenjain

      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?