ich einige Frühjahr Formularvalidierung mache, aber ich bin immer:Frühling Validierung: kann nicht von String umwandeln Datum
Failed to convert property value of type 'java.lang.String' to required type 'ja
va.util.Date' for property 'birthdate'; nested exception is java.lang.Illega
lStateException: Cannot convert value of type [java.lang.String] to required typ
e [java.util.Date] for property 'birthdate': no matching editors or conversi
on strategy found
Doch meiner modelAttribute Form ich habe:
@NotNull
@Past
@DateTimeFormat(style="S-")
private Date birthdate;
Ich dachte, das DateTimeFormat war dafür verantwortlich?
Ich benutze den Hibernate-Validator 4.0.
Haben Sie ''? –
axtavt
Vergessen zu erwähnen, dies ist in einem Portlet, so dass die mvc: annotation-driven nicht funktioniert. Ich benutze: \t \t \t \t \t \t –
jack
\t \t \t – jack