Could you please anyone tell me how to get multiple values from
I have this in my create.gsp
Your MME
is because the get()
on Domain classes only handles one id at a time. For multiple ids from your use.
def validators = Validator.getAll(params.list('validator.id'))
The params.list()
will always fetch 'validator.id' as a List even if there's only one, which will save you from having to test for single vs multiple results from your .