-
Mar 7th, 2011, 10:46 PM
#1
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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules