Re: Binding Numeric ID Field
Yeah, you would have to make a custom editor that checked for empty string values and converted them to null values in this case. There might be a property on the Long custom property editor in Spring, but I haven't looked at it in a long time. I got annoyed with this behavior too so I just added a feature into my framework that had a setting to allow null values or not, so it will throw the exception only when you want it to, but this setting is usable for longs, dates, booleans, user-defined types or whatever instead of just certain editors.