Re: CForms booleanfield validate problem

2004-09-04 Thread Karel Vervaeke
Bart Molenkamp wrote: I saw that the validate method doesn't check for extra validations. I think you need somethink like this: return widget.getValue == java.lang.Boolean.TRUE; I had one of these lying around: I Agree! if (!widget.value.e

Re: CForms booleanfield validate problem

2004-09-03 Thread Antonio Gallardo
Patrick Verboom dijo: > Hi Bart, > > It is a law thing. The user needs to agree before he may continue in the > flow. So I wanted to validate the form and look if the check box was > checked if not set an validate error message. The problem is that in the > validate method of the form the boolean

RE: CForms booleanfield validate problem

2004-09-02 Thread Bart Molenkamp
-Original Message- From: Patrick Verboom [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 2:01 PM To: [EMAIL PROTECTED] Subject: Re: CForms booleanfield validate problem Hi Bart, It is a law thing. The user needs to agree before he may continue in the flow. So I wanted

Re: CForms booleanfield validate problem

2004-09-01 Thread Carlos Chávez
for boolean fields having validators? >> */ >>public boolean validate() { >>// a boolean field is always valid >>return true; >>} >> >>But maybe I don't understand your question. >>Bart. >> >>-Original Me

Re: CForms booleanfield validate problem

2004-09-01 Thread Patrick Verboom
oolean validate() { // a boolean field is always valid return true; } But maybe I don't understand your question. Bart. -Original Message- From: Patrick Verboom [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 11:04 AM To: [EMAIL PROTECTED] Subject:

RE: CForms booleanfield validate problem

2004-09-01 Thread Bart Molenkamp
- From: Patrick Verboom [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 11:04 AM To: [EMAIL PROTECTED] Subject: CForms booleanfield validate problem Hi, How do you validate a boolean field? I tried to use my own validate method on the complete form but the boolean field keeps se

CForms booleanfield validate problem

2004-09-01 Thread Patrick Verboom
Hi, How do you validate a boolean field? I tried to use my own validate method on the complete form but the boolean field keeps sending me a false. It doesn't mater if I select or deselect the check box the thing keeps giving me a false. I now created a not so elegant solution over a hidden field