Announcement Announcement Module
Collapse
No announcement yet.
List of BindingResults in View Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • List of BindingResults in View

    Hi,

    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?

  • #2
    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.

    Comment

    Working...
    X