It's quite likely that this is simply an oversight. I'll check.
Compound fields have sucked since we made FK; we mean to fix them "one day".
A short-term solution would be to dig into the compound field itself and set validators on the individual field elements (which are in fact just fields). It's not elegant, but at least you would get the requirements you need.
I'll check on this and get back to you.
Michael Palmer wrote:
Hello,
In FormKit, there is a problem with the validation of input into EditableSelectField elements.
If validators are applied to this field, they are run only on the select box but not on the text
field.
This can be shown using the CompoundFieldExample.py servlet that ships with Formkit. If a
Validators.MinLength(5) is applied to the EditableSelectField in this servlet, it complains when choosing 'red'. However, if you choose 'yellow' and then also type in 'Duh', the latter value is accepted without the
validator complaining.
Same goes for the RadioSetWithOther element - validators don't run on the text field component.
I haven't dug deep enough into the sources to spot the bug - maybe one of the authors can find it faster?
Thanks, Michael
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss