-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

FormKit again -hopefully webware-discuss will not be renamed to
formkit-discuss. :-)

I recognized that there might be a problem with validators and
EditableSelectField from CompoundFields (probably related to another
problem reported here some time ago about validation of CompoundFields).

If you do something like this:

form.addField(Fields.EditableSelectField("name",
~              validators = [self.valNotEmpty, self.valInt],
~              label = "Enter a required field")
~              )
...

you get a compound field, which (at least here) requires, that you
always select from the dropdown-list, regardless if you entered text in
the adjacent textfield or not.

This is bad in case that you want the dropdown to be empty initially
(because people should be able to add stuff, which is then stored in a
rdbms or something) and displayed it in the dropdown in all further
rounds of editing.

Quick fix: Add a default value to initialize the dropdown (on
database-setup).

In principle, the validator should only complain if dropdown AND
textfield are empty, and not if only the dropdown is empty.

Is there an easy possibility to fix this? Have I overlooked something
again? :-)

Thanks again.

- --
Bye,
Marc Saric

Dr. Marc Saric, Bioinformatik, Proteom Centrum Tübingen,
Paul-Ehrlich-Str. 15, D-72076 Tübingen, Germany,
Tel: +49 (0)7071 29 77645, [EMAIL PROTECTED]
http://www.proteom-centrum-tuebingen.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBBkUHBLD6PjSWyL4RAjyCAJwJCxmSC1EPqylPqXkWS8HkmNBRIwCfewab
z+v+Hve7khk7Ha3uXExniLI=
=l5N4
-----END PGP SIGNATURE-----


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idG21&alloc_id040&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to