In T4 we could new up a Validator, provide it with whatever
information we wanted, and pass that directly to a form component for
validation. I miss this.

I have a loop which generates form components. Each one needs some
very custom validation. I know I can create a validator that will take
in a constraint, but the constraint in the template has to be static.
I could inject a FieldValidatorSource, but that requires having access
to the Field, which I don't because they are generated in a loop. I
can't just inject them all into the page.

I can accomplish all this with an onValidate method, but then the only
thing I can do is add generic errors to the ValidationTracker. I can't
specify which field is in error because the fields are generated in a
loop and therefore can't be injected into the page.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to