bėgantis debesis wrote:
Hi,
to simplify a problem, let's say i have a @Checkbox and many @Text
components in a form.
I want no validation when the checkbox is checked, and validation must be
executed, when form is submitted with the checkbox not checked. @Text
component contents must be validated.
Do you know any ways of doing this?
Thanks in advance,
Valdemaras Repšys
Sveikas, Valdemarai!
The possible way to solve your problem is to skip error.
Form listener method must use validation delegate object
to test if there was an errors in form, and if there was, then you
must return null and page will be viewed with error messages.
But you can test those errors by your self. For example,
if there is no need to check text component, but it contains error,
then you can continue normal listener behavior. Or you can use
text component without validators and test it in listener and there
will be error, you will need to modify validation delegate and return null.
P.S. LT is no problems, but it is mailing list, you know...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]