Scott F. Walter wrote:

So the format for the new validator syntax is :

validator:/name/[,/property/[=/value/]]*

My questions are:
1. If I create my own custom validator what do I specify for "name", is it the full qualified class path or do I need to some how register "name" with a full qualified class path?

You need to contribute your custom validator to the tapestry.form.validator.Validators hivemind configuration point. Look at the framework/src/descriptor/tapestry.form.validator.xml file in the source distribution to see how it is done for the build-in validators.

2.  Using the format above, how can I have multiple validators?

e.g.
<input jwcid="@TextField" value=ognl:myEmailAddress" validators="validator:required,email,maxLength=50" type="text"/>

This sample field uses 3 validators: Required, Email, and MaxLength.
You can also look at the Workbench application in the distribution for other validatable field examples.

Paul

thanks, scott.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to