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.

1 comment:

Jay vyas said...

This is a great tutorial it helped me bridge the gap between the exames in land-of-lisp , which provide insight into clojures philosophy , while also demonstrating the fact that Clojure is meant to be a practical, next generation variant of Lisp - this distinction is important when you want to leverage clojure to build practical apps