I'm not exactly certain of your needs, but I think you can always activate validation but just change the validation code based on the value/state of other fields (such as the "original" one you mention).

Perhaps the Java code example on page 38 of
http://www.objectsource.com/Struts_Survival_Guide.pdf can be of help for you--I am unsure.

Glen


Marc Demlenne wrote:
Hi,
I need to use a text box that must correspond to a regular expression,
so it can be validated by the "mask" validator.

However, if and only if this value remains unchanged by customer, it
has not to be validated and can stay as is, even if it doesn't
correspond to the mask. This could be easily done by checking the
value against another field containing the original one with
"validwhen" validator for instance.

However, I need to have my field validated even if only one of those
validators are OK, not both ones.

How can I make this using validator plugin ? Thanks very much for any answer.

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

Reply via email to