Announcement Announcement Module
Collapse
No announcement yet.
Can you use a spring validator with model annotations (jsr 303)? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can you use a spring validator with model annotations (jsr 303)?

    I'd like to keep my validations at the model annotation level using jsr 303.

    On my form pages, can I still use a spring validator along with model level annotations?

    I have a form that has 2 models on it, and not sure how to validate using a bindingresult when I have form fields from 2 models (not all the fields, just some).

    So on postback, I want to first manually set some properties on both models, and THEN perform validation.

    how can I do this?
Working...
X