You jogged my memory on the blank attributes not being transmitted... but I can't seem to reproduce that. I created a basic HTML form with no values (one a select with a blank value), the other a input text where I delete the value in the browser before hitting submit. I tried with GET and POST, and with POST I tried AJAX submission as well (using the very latest Yahoo and with the dojo that comes with grails). Every time I'm getting it through and with no value; I believe that ends up being an empty string
I agree that setting a value to the empty string directly on the domain should probably not be coerced to a null; though I am open to that idea. I do think that a blank value should be null, not an empty string on the params.
The blank value is troublesome for me at the moment because I'd like to update my domain object's value to null. I wonder how rails does this off hand; I forget. I'm using the model.properties = params method now, so it is grails and/or SpringMVC that is doing the params to domain object binding. If I can't use it anymore... I guess I'll have to re-implement it, more or less. I have developed a scaffolding abstract base class and I like to generalize as much as possible. My domain models are numerous. Forcing every controller to manually build-out fill in the domain model from the params to then save would be lots of code that I don't think I should have to do.
Thanks for your time, Marc