Well, ok, i expressed myself rather poorly.
I did not mean that it is not possible to do cross-field validation with
validators, but rather that it is not the more "traditional" approach.
I do not like it very much, because it blurs the separation (and
location) of the two kinds of validation rules. Nonetheless i can
clearly see that a similar IdentityValidator can come quite handy.
Thanks for the tip
Francesco
andyhot wrote:
fdegrassi wrote:
AFAIK, validators do just that, validate the syntax of values
submitted. (field level validation)
Validation logic that involves multiple fields (form level validation)
should go into the form/submit listener.
Not quite true...
Take a look at
http://issues.apache.org/jira/browse/TAPESTRY-410
to get some ideas of what can be achieved.
Regards
Francesco Degrassi
Malin Ljungh wrote:
Good evening!
I have written my own validator which works excellent - as long as a
value
is submitted in the field to be validated. Have I missed something here?
What should I do?
To add a required validator may seem to be the obvious solution but the
thing is that the field is not always required - it depends.
Cheers
Malin
---------------------------------------------------------------------
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]