Monthly Archives: May 2014

Grails beforeUpdate filter fails without log.info

Ok, I know I’m missing something here, but I don’t know what it is. At any rate, trial and error has taught me that my beforeUpdate (and probably beforeInsert too, just haven’t tested that yet) prevent the update (or insert?) from completing, unless I add some extra code to “jiggle” it. Sounds crazy, right? But […]

Reserved words in Grails?

So, I found this list of reserved words in Groovy, but a few times I’ve run into others that seem to be problematic. Not sure if they are actually “reserved”, or where the conflict is for each, but I know I had problems… alternate – so, I had a domain Course, and another domain CourseAlternate […]

Use “name” to add an “id” attribute to g:form (in Grails)

If you want to use the simple syntax <g:form action=’myaction’ />, adding id=”x” will result in a form post to /myaction/x – to get a post to /myaction with a form id attribute of “x”, use the name attribtue instead, as <g:form action=’dologin’ name=’x’ />, per this thread: https://jira.grails.org/browse/GRAILS-895 Alternately, you can use the syntax […]