I am using the JqGrid plugin for Grails (version 126.96.36.199). I have set up a jqGrid working with the predefined "actions" formatter for delete and edit and everything is working great! I am now trying to get some custom validation rules in place and have run into some problems. I defined a method that compares two values and set it as a constraint in the Domain class. Here is a sample of this definition:
This constraint works fine with add (which I am doing via a custom button). When I use the inline edit with the actions formatter, however, it accepts the input, displays no errors to the user, and gives the console error:
Field error in object 'edu.hawaii.sitar.inf.VirtualResource' on field 'resourceCapacity': rejected…
I have tried using every formatOption I could think of (onError, etc.) but none seem to work! I also tried using custom error notification but I cant figure out how to manipulate the actions formatter (again, formatOptions don't seem to be working). If this is an issue with the version I am using (188.8.131.52), is there a way to get a newer version working with Grails?
Any help would be greatly appreciated! Below is some of the code I am using for the jqgrid: