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 - this is so that both
fields have rewound
Steve Shucker wrote:
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, referent.getValue() always evaluates to null. Is this
something that I need to upgrade to tapestry 4.1.2-SNAPSHOT to make it
work (I'm using 4.1.1)? It's not an issue with validating one field
before the other is set - I've tried moving the validator between the
different controls.
-Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]