문제

I want to use the constraints of my User domain model instead of the one provided by the RegisterCommand. Is it possible to modify it in a way that they are used? I already have custom views and controller for register.

올바른 솔루션이 없습니다

다른 팁

If you have a custom Controller you could just create your own command object for the validation and use the Grails 2.0 importFrom ability in its constraints block. If it must be an instance of RegisterCommand, just create a subclass and override the constraints in the subclass with importFrom.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top