Apr 11th, 2010, 12:23 PM
List of BindingResults in View
for a dataset import (CSV, XLS) I have used the builtin DataBinder and ended up having a List of BindingResult objects, which I have added to a formBackingObject to hand it into the view. Now I want to show the validation errors in each BindingResult.errors to the user, but I couldn't figure out a way to do this yet. The form:errros tag seems to work the standard way, where you give a formBackingObject that has been validated.
I have tried a lot with the spring:nestedPath and spring:hasBindErrors without success so far. I guess I haven't understood the whole issue totally yet.
In which way could I reuse the Spring functionality to show the Errors to the user?
Apr 12th, 2010, 02:09 AM
I made an own tag evaluating the ObjectErrors of each BindingResult now. So I do have some duplication of the code in the Spring ErrorsTag but at least it works.
If anybody comes up with a better solution, please let me know.
Tags for this Thread