Welcome to the new Spring.io forums!
If this is your first visit, be sure to check out the
by clicking the link above, and for security reasons, use the
forgot password link to reset your password..
You may have to register before you can post: click the register
link above to proceed. To start viewing messages, select the forum that you want to visit
from the selection below.
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?