I haven't even been able to figure out requiredif! I think your feature is great but we need to show some discipline and maintain the 1.1 freeze. IMO, this should be a definite addition for 1.2.
I have no idea about the issues with JavaCC. Does it mean that there's no source file, just a generated class file?
Dave
From: "James Turner" <[EMAIL PROTECTED]>
Reply-To: "Struts Developers List" <[EMAIL PROTECTED]>
To: "'Struts Developers List'" <[EMAIL PROTECTED]>
Subject: RE: My dilema: Much improved version of requiredif ready, 1.1 or 1.2?
Date: Thu, 6 Mar 2003 01:42:25 -0500
Actually, I realized just after I sent this that if I took the required part out and called it validwhen instead, you end up with a true general purpose validation tool! So that's the one I'm proposing. Basically, if you had a field lastName that was required if firstName was filled in, you say:
((lastName != null) or (firstName == null))
I.e., the field is valid if it isn't null, or the firstName field is null.
This means you can generate an error on a field based solely on the values of other fields.
James
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]