How do I create a custom validator with a custom error message in Grails?

前端 未结 2 1431
半阙折子戏
半阙折子戏 2020-12-05 07:37

How do I create a custom validator in grails and make it pass a custom string back to the view and an error message?

I saw so many people getting stuck in the same p

2条回答
  •  遥遥无期
    2020-12-05 08:34

    The alternative to have custom validation is create custom constraint and wire it with Grails.

    http://www.zorched.net/2008/01/25/build-a-custom-validator-in-grails-with-a-plugin/

提交回复
热议问题