I'll have to experiment with this one, but my first thought would be to take out the self.valNotEmpty validator... that may be getting applied to the drop-down.

I'll make a similar example here and test it, and let you know, but in the mean time, take that out.

We use EditableSelect ALL THE TIME and it doesn't have this problem.

Marc Saric wrote:

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 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_id=4721&alloc_id=10040&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to