startTime: {
date: true,
required: true,
validator: {
url: '/appContextRoot/JQueryRemoteValidator/validate',
type: 'post',
data: {
validatableClass: 'myapp.command.tester.testerDealCommand',
property: 'startTime'
}
}
}
Obviously, the custum constrains logic withing "validator:" does not work.
What is the best approach to get this custom validator working?
1: Some form of Ajax call?
2: Use Custom Constraits plugin and add js code to grails-validation-methods.js?
3: Some other way?
I'm unsure of using option 2....is there some way to extend your plugin?
I do not want to have to commit and maintain an seperate version of your plugin to our source code repository.
Thanks