I'm getting a bind error on my SimpleFormController. It's occuring on my property "id" which is a Long in my domain object. I'm getting this error upon submitting the form:
Failed to convert property value of type [java.lang.String] to required type [java.lang.Long] for property 'id'; nested exception is java.lang.NumberFormatException: For input string: ""
The error makes sense to me... it cannot bind to the "id" field because it can't convert "" to a Number using the NumberFormat.
My desired effect here is to have the binder set id = null (or not set it at all). I would presume this would be the default behavior but I guess I'm wrong. Do I need to register a Custom Property Editor for every one of my id fields?
I can't seem to find an example of a similar problem. Thanks for your time.


Reply With Quote