<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Neither solution work, I think. The latest does not compile in Java. Your initial solution does not accept parameters nor multiple constraints of the same type.<div>And neither allow for parallel reports (ie all errors of order=1) but that's a lesser concern.</div><div><br><div><div>On 5 janv. 2012, at 13:14, Cemo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div> What about this? </div><div><br></div><div><div> @ConstraintSequence({</div><div> @NotEmpty(),</div><div> @IsValidBinCodeNumber(),</div><div> @IsCardBannedNumber(),</div><div> @IsValidCardNumber()</div>
<div> })</div></div><div> <span style=""> private String creditCard;</span></div><div><br></div>Thanks<br><br><div class="gmail_quote">On 5 January 2012 13:56, Cemo <span dir="ltr"><<a href="mailto:cemalettin.koc@gmail.com">cemalettin.koc@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><br></div><div><div> @NotEmpty()</div><div> @IsValidBinCodeNumber()</div><div>
@IsCardBannedNumber()</div><div> @IsValidCardNumber()</div><div><br></div><div> <b>@ConstraintSequence(value={NotEmpty.class,</b>
IsValidBinCodeNumber <b>.class,IsCardBannedNumber.class, IsValidCardNumber.class}, shortCirtcuit=true)</b></div></div></blockquote></div><br>
_______________________________________________<br>beanvalidation-dev mailing list<br><a href="mailto:beanvalidation-dev@lists.jboss.org">beanvalidation-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/beanvalidation-dev<br></blockquote></div><br></div></body></html>