This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes BeanValidation - Error Message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "BeanValidation - Error Message" Watch "BeanValidation - Error Message" New topic
Author

BeanValidation - Error Message

Dominik Müller
Ranch Hand

Joined: Apr 28, 2009
Posts: 36
Hi There,

in my project, i implement a custome Validator (JSR303)



The Problem: the Validator invoke an external system to do the validation, which returns an important error message on failure.

The Question: How do i process a dynamic error message, generated by the validator itself, to the invoking process?

Thanks a Lot
Dominik Müller
Dominik Müller
Ranch Hand

Joined: Apr 28, 2009
Posts: 36
The Answer on my question.

In error case: disable the default constraint and create and add a custome one

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: BeanValidation - Error Message