Re: Multiple component validation

2007-06-04 Thread Steve Shucker
I already tried it on both fields and it doesn't work either way. -Steve andyhot wrote: From http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/form/validator/Identity.html " Apply this validator to the second field ... " So, you need to do it the other way around, i.e. pass

Re: Multiple component validation

2007-06-04 Thread andyhot
From http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/form/validator/Identity.html " Apply this validator to the second field ... " So, you need to do it the other way around, i.e. pass the name of the first field to your validator and apply the validator to the second field -

Multiple component validation

2007-06-04 Thread Steve Shucker
I'm trying to write a variant of the match/differ validators to check if two fields have the same null state. I pass in the name of the second field to the validator and can access that field with TextField referent = (TextField) field.getContainer().getComponent(_fieldName); However, refer