1 Reply Latest reply on May 8, 2008 10:34 AM by Michael Abele

    Validation of user inputs

    k dcosta Newbie

      hi

      I have a page with four inputText and two commandButton ie submit and cancel.

      when the user enters some values and click on submit button, i want to perform some validations and show corresponding message.
      so i used <f:validator> and <h:message> for range validation.

      its all working when the submit button is clicked.
      But the problem is that when the i click the cancel button also, its showing validation messages. ie validation is taking place in any button action.

      My purpose of cancel button is to clear the text boxes.
      And i wanted the validation to be done only when the submit button is clicked.

      How to customize the validation??

      rgds
      kdcosta