<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>&nbsp;What about this?&nbsp;</div><div><br></div><div><div>&nbsp; @ConstraintSequence({</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@NotEmpty(),</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@IsValidBinCodeNumber(),</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@IsCardBannedNumber(),</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;@IsValidCardNumber()</div>

<div>&nbsp; &nbsp;})</div></div><div>&nbsp;&nbsp;<span style="">&nbsp;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">&lt;<a href="mailto:cemalettin.koc@gmail.com">cemalettin.koc@gmail.com</a>&gt;</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>&nbsp; &nbsp;@NotEmpty()</div><div>&nbsp; &nbsp;@IsValidBinCodeNumber()</div><div>
&nbsp; &nbsp;@IsCardBannedNumber()</div><div>&nbsp; &nbsp;@IsValidCardNumber()</div><div><br></div><div>&nbsp; &nbsp;<b>@ConstraintSequence(value={NotEmpty.class,</b>
IsValidBinCodeNumber&nbsp;<b>.class,IsCardBannedNumber.class,&nbsp;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>