Top "Bean-validation" questions

Bean Validation, previously commonly called just "JSR-303", is an annotation based validation framework for javabean properties and parameters of arbitrary methods.

JSR-303 Bean Validation for enum fields

I have a simple bean with enum field public class TestBean{ @Pattern(regexp = "A|B") //does not work private TestEnum …

jakarta-ee java-ee-6 bean-validation
Inject Service in ConstraintValidator [Bean Validator - JSR 303] Spring

Good Afternoon, I am having problem to inject a service within a Bean Validator (JSR 303). I would be performing a …

spring validation bean-validation
How to perform JSF validation in actionListener or action method?

I have Bean validation working nicely in my application. Now I want to check that a new user does not …

validation jsf bean-validation
kotlin data class + bean validation jsr 303

I'm trying to get Kotlin working with jsr 303 validation on a spring-data-rest project. Given the following data class declarartion : @Entity …

jpa bean-validation kotlin spring-data-rest data-class
How do I get Spring MVC to invoke validation in a JUnit test?

I have a POJO called Browser that I've annotated with Hibernate Validator annotations. import org.hibernate.validator.constraints.NotEmpty; public …

java spring spring-mvc junit bean-validation
Making javax validation error message more specific

Sorry if this question has been covered somewhere before. If it has please link me to it, I haven't been …

java bean-validation min
No validator could be found for constraint 'javax.validation.constraints.Size'

I have the following error javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 'javax.validation.constraints.Size' …

java spring hibernate bean-validation
Bean Validation: How can I manually create a ConstraintViolation?

I have a specific scenario where I can only check for violation conditions manually, at a later point in the …

java validation bean-validation hibernate-validator
Validate elements of a String array with Java Bean Validation

I have a simple class that has one of its properties as a String array. As per this document, using @…

java bean-validation indexed-properties