ie
TextField td1=new TextField(...);
TextField td2=new TextField(...);
td2.add(new MyValidator(td1, td2));
-Igor
On 10/30/05, Nick Heudecker <[EMAIL PROTECTED]> wrote:
Thanks. I knew I could do that, but I was hoping to be able to put that into a CustomValidator subclass.On 10/30/05, Igor Vaynberg < [EMAIL PROTECTED]> wrote:You can do this in your onsubmit handler.
ie
Form...onSubmit() {
CreditCardInfo=(CreditCardInfo)getModelObject();
if (.....validation failed test....) {
error("something is wrong");
}
}
Does this make sense?
-Igor
On 10/30/05, Nick Heudecker <[EMAIL PROTECTED] > wrote:Does Wicket provide a mechanism to validate two components? For instance, I'm taking credit card info and need to validate that the expiration month and year, both represented by individual select lists, are valid.
