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 able to find a satisfactory answer as yet.[详细]
2023-02-15 04:52 分类:问答JSR303 Validation - Using groups from a custom class validator
We have a use case in which we have a fairly poorly constructed bean that contains fields like so: public class DataBean {[详细]
2023-02-14 19:52 分类:问答javax.validation get field field owner object
Imagine the current situation: class Alpha { Integer x1; @BiggerThan(\"x1\") Integer x2; } I want to write a custom constraint validator for this @BiggerThan annotation.[详细]
2023-02-14 08:24 分类:问答What setup do I need to do to use JSR-303 annotations with Spring?
I downloaded spring 3 and put it on my classpath but I\'m not able to import the @Valid annotation. However, I am able to import other spring 3 annotations (such as @Controller). What Jar is @Valid in[详细]
2023-02-13 07:11 分类:问答How to check, throw and catch bean's validation ConstraintViolationException
Consider the following case: I have a \"serivce\" module that has a class called ClientService. This ClientService uses a class called ClientDao in a \"dao\" module.[详细]
2023-02-12 20:56 分类:问答JSR303 ConstraintValidator, how to show the message without an error page
Im working with JSF 2.0 and Glassfish v3. I was testing the functionality of JSR303 bean validation, so I created a validator which implements ConstraintValidator and then annotate that on a property[详细]
2023-02-11 16:26 分类:问答JSR303: Trying to customize a constraint violation to be associated with a sub-path in a class-level relationship constraint validator
I am using JSR303 and created a class-level constraint that compares the password and its confirmation in a form, which I shall name here the @SameAs constraint. Ideally, I would have liked to associa[详细]
2023-02-09 01:02 分类:问答JSF 2.0: How to skip JSR-303 bean validation?
How to skip JSR-303 Bean validation with JSF, when a button is clicked? A bit lengthy question to explain a few approaches... Consider a list in a form:[详细]
2023-02-07 22:16 分类:问答Bean Validation: Receive EntityNotFoundException though have a constraint to validate entity
Technologies: Spring, Hibernate, JSR-303, JQuery Platform: Windows I am trying to implement @IdMustExist JSR-303 constraint. The purpose of the constraint is to check whether the entered id value exis[详细]
2023-02-07 18:35 分类:问答Is there a way to use JSR-303 (hibernate) annotations and modify the Message using {0} {1} syntax?
Is there a way to use JSR-303 (hibernate) annotations and modify the Message using {0} {1} syntax?It seem that using a Spring Validator gets you this:[详细]
2023-02-06 23:36 分类:问答