Closed spring-projects-issues closed 6 years ago
Juergen Hoeller commented
This will be available in the upcoming 5.1.0.BUILD-SNAPSHOT
. Please give it an early try...
Masatoshi Tada commented
I upgraded my sample to Spring 5.1.RC1, and I found this issue was fixed! Thanks!
Masatoshi Tada opened SPR-16840 and commented
public class SampleForm {
}
If field's annotation is missing, a value in textbox become "yy/MM/dd" when returning to input view. If constructor parameter's annotation is missing, a validation error occurs in spite of inputting correct value. So I have to add annotations to both of field and constructor parameter. I think this is verbose.
Affects: 5.0.6
Reference URL: https://github.com/MasatoshiTada/spring-mvc-form-sample/blob/master/01-immutable/src/main/java/com/example/immutable/SampleForm.java
Issue Links:
15682 Enable REST controller method parameter annotations on an interface
21394 No type-based error code used by immutable form class when type conversion error occurs
Referenced from: commits https://github.com/spring-projects/spring-framework/commit/955665b419ec237029abfa0824ca8a47d410a423