Welcome to Software Ninja blog - your ultimate destination for mastering software development and data manipulation. Explore cutting-edge techniques and expert tips to sharpen your coding skills and become a data virtuoso. Let's embark on a journey of discovery together!
Friday, February 11, 2011
Validate error missing in portlet render phase - Spring Community Forums
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.
Subscribe to:
Posts (Atom)