5 Replies Latest reply on May 16, 2007 6:35 PM by Alexander Smirnov

    JSF Validation and oncomplete handlers

    Jose de Castro Newbie

      Is there a way to tell if validation failed after invoking an action using a4j:commandButton?

      There are a few spots in my application where I make use of modal dialogs to request user input. I'd like to close the dialog after a successful save operation and leave it open if it fails due to validation.

      This seems like a pretty common use case but I can't figure out how to extract the information from the data available to an oncomplete handler. Am I going about this the wrong way or is this just a limitation of the framework?

      Thanks in advance,
      Jose