Here's how to get CGI working in a Grails app.
(read more)I was reminded again today that standalone classes in Grails must belong to a
package. That is, a class in src/groovy
or src/java
needs to be in a
package. For example:
I have nullable one-to-many relations in Grails/GORM and started getting
"object references an unsaved transient instance" exceptions from Hibernate.
In the Grails forms, selecting a blank/no-selection value for the field sent
params.myOtherObject.id==''
. GORM then tries to create a new empty object
and during the save(flush:true)
, it complains with the exception:
I was trying to use the Groovy XML MarkupBuilder to have Grails output an HTML fragment for an AJAX call and just couldn't get it to work. I wanted to generate an HTML select/option menu from a list of lists:
(read more)Here's how I converted, or moved, a Subversion (svn) repository to a subdirectory in a new git repository, with history (but no branches or tags).
(read more)I'm now running Ubuntu 9.x on a MacBook Pro that was leftover after colleagues' hardware upgrades. Posts from trainque and richb helped, but I ran into a few more quirks.
(read more)While on a ship at sea, I was using Moinmoin wiki to record some local documentation. We had internet (usually, except when the ship pointed a certain direction), but it was a bit slow and expensive. So I was annoyed to discover that Moinmoin was calling home in several places.
(read more)While on a ship at sea with slow (sometimes no) internet, I was developing a Ruby on Rails application for local (onboard/intranet) use. I discovered that Phusion passenger (modrails) calls home. This error layout file:
(read more)Here are the permissions I've used for Grails apps deployed to Tomcat running the Java security manager.
(read more)The documentation for Tomcat 6.0.18 AJP/1.3 Connectors is incomplete and misleading. It seems to indicate that there is exactly one class for AJP, but there are actually three and the one you get may not match the documentation.
(read more)