Validate error missing in portlet render phase - Spring Community Forums
I fought this for a couple of days before coming across this article. The issue is a simple one: errors that were added to the bindingResult either with a validator or with the rejectValue call were not showing up in the JSP form:errors tags.
The solution is to add the ModelAttribute for the form command object to the SessionAttributes so it survives from the action phase to the render phase.
I fought this for a couple of days before coming across this article. The issue is a simple one: errors that were added to the bindingResult either with a validator or with the rejectValue call were not showing up in the JSP form:errors tags.
The solution is to add the ModelAttribute for the form command object to the SessionAttributes so it survives from the action phase to the render phase.