Announcement Announcement Module
Collapse
No announcement yet.
spring 2.3.0 : jsr 303: validating only on specific state transition. Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring 2.3.0 : jsr 303: validating only on specific state transition.

    Hi i have a question regarding using jsr-303 and spring web-flow validation sequence.


    So say i have a paymentCommand object?

    paymentCommandValidator has two method.

    validateAdd, validateEdit,

    I want to be able to invoke jsr-303 validation base on transition of flow.

    transition on="Add" to=".." . I know this will invoke the validateAdd and validateEdit but now i want to be able ot use jsr-303 validator to validate the paymentCommand.

    Some fields like address are required for add but not for edit, and some like security code is required for both. Whats the best way to deal with the situation, for using jsr-303 command validator?
Working...
X