Hi Patrick,
What do you want to validate about a boolean field?
A boolean field can only contain valid values. It's value, either true
or false, are always valid values for a boolean. So it returns always
true. See this code snippet from BooleanField.java:
/**
* Always return <code>true</code> (an action has no validation)
*
* TODO is there a use case 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 Message-----
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 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 and a
on-value-change but there must be a better solution.
Greetings Patrick
---------------------------------------------------------------------
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]