This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.
All HTML input types *except for checkboxes* will return an empty string. Is this what you mean?
To get around the horrific flaw in checkbox handling, you can have a hidden element with "_propertyName" in your form. When spring binds it will intialise to the default values *including primitives* any properties which have a corresponding "_propertyName" parameter.
Now I know what the problem is. Date fields can not be empty.
I get this message:
Failed to convert property value of type [java.lang.String] to required type [java.util.Date] for property 'tanggalLahir'; nested exception is java.lang.IllegalArgumentException: Could not parse date: Unparseable date: ""
Would there be any way to let null value date be inserted?