Validating using stripes causes bound values to delete
-
26-09-2019 - |
문제
I'm using Stripes and I am validating the values of a drop down box to ensure the user selects an option. On initial load all data is present, but once the validation kicks in the form loses the data that was set up in the action bean on load. This includes the original list I am validating against.
I'm simply using in the jsp, and annotating the field in the action bean as @Validate(required=true).
Am I missing something simple?
Cheers
해결책
Fixed it.
I should use @Before methods to pre-populate domain objects, as per the Stripes best practice.
제휴하지 않습니다 StackOverflow