Don't declare the field as mandatory.
Then add your custom validation to onValidateFromXXX where XXX is the
id of your form.
Validate the id there.
Alternatively, you could contribute your own validator, which doesn't
perform any client-side validation.
Robert
On Mar 21, 2008, at 3/219:50
Hi Robert,
oh i see, so for every validation you have to code two, one in java and
another one in js, this does bring up another question, can
'clientvalidation' be set in the field level? say, I have a form, all the
fields can be validated client side except a customer id field, which
requires u
One is for client-side validation, and the other is for server-side
validation?
Client-side validation is a nicety that makes the validation process
less painful for a client.
But you can't rely on it for any sort of "security" since all it takes
to bypass it is to turn of javascript.
Hence,
Hi,
Looking at Tapestry.js' addValidator for 'Required':
required : function(field, message)
{
Tapestry.addValidator(field, true, function(value, event)
{
if (value == '')
event.recordError(message);
});
},
and also the Required.java, it has a validation t