Hi,
I have the following bean "Test" with cascaded validation to 2 objects of type "Info"
Code:
public class Test {
.........
@Valid
Info creditInfo;
@Valid
Info debitInfo
.............
}
public class Info {
@CheckAccount(message="Account is invalid")
String account;
@CheckCustomer
String customer(message="Customer is invalid")
................
}
I want my messages for constraints on "Info" to also be able to display whether it was "Credit" or "Debit" related.
How can I pass that information from top level bean to the embedded bean?
Any ideas?
Thanks,