bean-validation
javax.validation: Receive an error 'No validator could be found for type:'
Framework: JQuery, Spring, Hibernate, Hibernate Validator(JSR-303 Bean Validation) Platform: Windows I am trying to define a custom constraint @IdMustExist using JSR 303-Bean Validati开发者_开发技巧o[详细]
2023-02-06 20:00 分类:问答Customize spring validation error
I want customize the spring validation error for @NotNull @Length(max = 80) private Str开发者_开发问答ing email;[详细]
2023-02-06 16:21 分类:问答NullValueInNestedPathException for Bean[] class binding
Hello I\'d like to ask if you can assign arrays of beans as a form for example i have a form: PageForm{[详细]
2023-02-03 19:51 分类:问答hibernate unique key validation
I have a field, say, user_name, that s开发者_运维技巧hould be unique in a table. What is the best way for validating it using Spring/Hibernate validation?One of the possible solutions is to create cu[详细]
2023-02-02 13:05 分类:问答JSR-303: Yet Another Cross-field Validation Problem
I have a @Money constraint that indicates the annotated Double property is, well, money. I wrote a ConstraintValidator that checks if a @Money property has a valid value, which depends on a Currency i[详细]
2023-02-01 03:48 分类:问答Is it possible to use bean level validation provided by JSF 2.0 in JSF 1.2
Is it p开发者_运维技巧ossible to use bean level validation provided by JSF 2.0 in JSF 1.2 .JSF 2.0 has no such thing as bean level validation. Probably you\'re confusing with JSR303 Bean Validation (t[详细]
2023-02-01 01:43 分类:问答Is it possible for Spring's JSR-303 implementation to validate object fields that are not from form input?
Hibernate\'s validator is my JSR-303 provider in my Spring MVC application. When I use @Valid, and then use the JSR-303 annotations on the form object fields, it validates just fine. However, there a开[详细]
2023-01-30 18:33 分类:问答Method Parameter Validation with JSR-303
Is JSR-303 also intended for method parameter validation? If so, is there any example on the web? The biggest challenge I\'m facing is how to get a validator开发者_如何转开发 within each method. With[详细]
2023-01-30 00:31 分类:问答jsr 303 validate a number and auto initialize to 0
in my domain class I have an integer which is being populated from form. if user enters any digit , it will be validated and if he leaves[详细]
2023-01-28 12:45 分类:问答Issue with using custom JSR303 annotation to validate method parameter in Spring mvc container
I build a simple application using Spring, and I try to implement a custom JSR303 annotation to validate method string parameter. I use Java code to config Spring container and I think that I have loa[详细]
2023-01-28 11:16 分类:问答