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
--
Michael Palmer University of Waterloo Dept. of Chemistry 200 University Ave. West Waterloo, ON N2L 3G1 Canada
Email: [EMAIL PROTECTED] URL: http://www.science.uwaterloo.ca/~mpalmer/ Phone: (519) 888 4567 ext. 5100 Fax: (519) 746 0435
-------------------------------------------------------
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