# HG changeset patch # User Sylvain Thénault # Date 1264520921 -3600 # Node ID 839b28a3652ea714453407b10adc96d8512f3fa0 # Parent 6d34e3cf60a3f55d0169b206717e6748a31ae0d2 surrounding div necessary for proper error localization diff -r 6d34e3cf60a3 -r 839b28a3652e web/formwidgets.py --- a/web/formwidgets.py Tue Jan 26 16:48:06 2010 +0100 +++ b/web/formwidgets.py Tue Jan 26 16:48:41 2010 +0100 @@ -747,7 +747,9 @@ attrs.setdefault('onkeyup', 'autogrow(this)') inputs += [tags.textarea(fqs, name=fqsqname, **attrs), u''] - return u'\n'.join(inputs) + # surrounding div necessary for proper error localization + return u'
%s%s
' % ( + field.dom_id(form), u'\n'.join(inputs)) def process_field_data(self, form, field): req = form._cw