You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2005/10/06 17:13:34 UTC
Please enhance validator "validwhen" to avoid associative braces
I'm using validwhen rule and find great for complex validation
I'm just frustrated on the requirement to use braces to group conditions
by pairs :
I must make a 4 element "or" validation, each element beeing itself a
"and" expression.
I'd like to write test = (A and B) or (C and D) or (E and F) or (G and H)
I have to write an ugly : (A and B) or ((C and D) or ((E and F) or (G
and H)))
doesn't look so ugly here, but A, B, C... are themself long lines
Is there any way to enhance walidwhen antlr grammar in future version to
support non braces expressions ?
Nico.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org