Forgive me for abusing this thread but... by the way how do you insert a
'-' and <space> chars into a validator mask regular expression?

Erez

-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 15, 2003 3:55 PM
To: Struts Users Mailing List
Subject: Re: Required checkbox field & Validator

If I think you mean what you mean, I think it's done so that any depends

validation that fails returns and no more validations on that field are 
done. But I've seen all fields getting validated in my client-side
stuff.

On 10/15/2003 03:19 PM Erez Efrati wrote:
> One thing else I don't get is why does the checkups in the client side
> validations are not done field by field, where on each field run all
the
> checks it depends on? Am I so special and unique to be doing it this
> way?
> 
> Erez
> 
> -----Original Message-----
> From: Adam Hardy [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, October 15, 2003 3:02 PM
> To: Struts Users Mailing List
> Subject: Re: Required checkbox field & Validator
> 
> On 10/15/2003 02:23 PM Erez Efrati wrote:
> 
>>I have a DynaActionForm with a boolean field representing a checkbox
>>field which must be checked before processing the form. I've tried
>>marking him as depending on 'required' but that didn't do it and the
>>server side FieldChecks.validateRequired () of Struts just let it
> 
> pass. 
> 
>>Going into the code I saw that the field already have a value of
> 
> 'false'
> 
>>thus it passes the check of not being null or blank.
>>
>>Now, I can put the code into my Action or into the derived form class
>>validate() method but I think that was not the idea of having an
>>infrastructure of validations. 
>>
>>How can this be done? Have I missed anything?
> 
> 
> This might be a kludge, but have you tried a validate mask = 'true'?
> 
> Otherwise I think it's not do-able with the standard validations.
> 
> Adam
> 


-- 
struts 1.1 + tomcat 5.0.12 + java 1.4.2
Linux 2.4.20 RH9


---------------------------------------------------------------------
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