Yes, thanx alot.
Paul Ferraro:
'string' refers to a translator, not a validator.
For the complete list of validators contributed to the Validators
configuration point, see
framework/src/descriptor/META-INF/tapestry.form.validator.xml in the
source distribution.
Since StringTranslator is the default translator for TextField, you
don't need to define an explicit 'translator' parameter unless you want
to translate to a date, number, or use some custom translation.
For the complete list of translators contributed to the Translators
configuration point, see
framework/src/descriptor/META-INF/tapestry.form.translator.xml in the
source distribution.
Does that clarify things?
Paul
Ron Piterman wrote:
But how come 'string' doesn't work for me? (see first message in
thread...)
This is a theoretical question, since everthing works, but if 'string'
*should* be accepted (as first in the 'validators' sequence), it may
be a bug...
I thought this has to be defined in the 'translator' property?
Cheers,
Ron
ציטוט Howard Lewis Ship:
It's a difference between a TextField and its validators parameter,
and the deprecated ValidField and its validator parameter.
The TextField validators actually supplies a series of Validator
objects (each "terms" causes one to be created and added to a list).
The ValidField valdiator parameter supplies a single IValidator
object; the first term ("string") effectively defines the type of
validator, the remaining terms configure properties of that validator.
On 7/13/05, Ron Piterman <[EMAIL PROTECTED]> wrote:
resolved.
Validation works. 'string' is the default value of the 'translator'
binding and thus obsolete.
ציטוט Ron Piterman:
Hi,
I have a TextField validator binding:
<binding name="validators" value="string,required,maxLength=32"/>
and get the error:
No validator named 'string' has been defined.
If I remove the 'string', validation does not work.
Do I have top declare the string validator?
Cheers,
Ron
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]