My question is even if I type 123 in the field, it still complains about the
field is required??  I am really confused now ...

-Betty

-----Original Message-----
From: Matt Bathje [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 06, 2005 2:03 PM
To: Struts Users Mailing List
Subject: Re: ValidWhen validation


Betty Koon wrote:
> Matt,
> 
> I have also tried to match a different mask like ^123$ for a test.  
> And it always complains about the field is required.  Any idea?
> 

It is the same basic problem, you are saying now that the field is 
required and that it must be the string "123".

I was thinking about this after I wrote my last message, and I think the 
only way you could get a mask to work here is if you or'd the regexp 
with another regexp that means "blank". Something like ^\s*|^\S+$ may do it
when used in conjunction with your validwhen...but I'm not 
entirely sure...

Matt


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


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

Reply via email to