4 Replies Latest reply: Jun 29, 2012 7:23 AM by Sudipto Desmukh RSS

    Stopping actionListener through JavaScript

    941434
      We have a commandImageLink with actionListener method. we have added a clientListener for that commandImageLink as the following

      if (AdfPage.PAGE.getClientIdsWithMessages().length != 0) {
      event.cancel();
      }

      Our aim is to stop the actionListener method from getting executed when there is a client side validation error. but event.cancel(); is NOT stopping the execution of the actionListener method.

      How can we stop the actionListener?

      Bala