Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BeanValidation - Error Message

 
Dominik Müller
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Answer on my question.

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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic