No. It's an OR.
If tipoDivisao != "I", qtParts does not matter, then the field is valid.
If tipoDivisao == "I" qtPartes is mandatory and cannot be null.
Correct me if I'm wrong, but this is what is said in this sentence.

( (tipoDivisao != "I") or (*this* != null) )

See the example in Struts site:
http://struts.apache.org/1.2.9/userGuide/dev_validator.html


Dave Newton escreveu:
From: Walter do Valle [mailto:[EMAIL PROTECTED]
Thried. Does not work.
Nuwan Chandrasoma escreveu:
( (tipoDivisao != "I") or (*this* != null) )

I don't know if validWhen shortcircuits, but if it does, wouldn't you
want an "and" there and not an "or"?

Dave

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

Reply via email to