I am faced the problem in Unique key validation.When I am creating new record the unique key validation working properly, But the edit time the unique key validation not working properly.
When the user enters data into an HTML field at the edit time, the value is applied to the backing bean onblur; the validators fire at this point and if the validation fails the area is rerendered and the field shows the 'errored state' on the page.
Thanks if anyone has any insight into this.
Have you tried with jsf validator. its pretty much straight forward