On 9/26/06, Chetan Pandey <[EMAIL PROTECTED]> wrote:

Thanks Wendy. I am trying to validate an array of ints.
The following should be true:

1. The array is not null.
2. The first value in its index should be higher than 0.
3. If the first value is 0 then its length must be greater than 2.

I'd just do it in Java code.  It's only a few lines, and is guaranteed
to be easier than trying to convince validwhen to do it.  You can
either write a custom Validator, or else just put it directly in the
validate method, depending on whether you need to reuse it elsewhere.

As I said, I don't believe that validwhen can handle primitive ints.
The grammar file only mentions String and Integer.

--
Wendy

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

Reply via email to