View Full Version : [FNR] TextField setName() not working

3 Nov 2011, 1:04 PM
When I call TextField setName() method it won't set name property in HTML.

FormPanel form = new FormPanel();
// ...
VerticalLayoutContainer p = new VerticalLayoutContainer();

TextField firstName = new TextField();
p.add(new FieldLabel(firstName, "Name"), new VerticalLayoutData(-18, -1));

It will produce following output in HMTL.

<input class="GJUVS-2BBU GJUVS-2BMT" type="text" value="" style="width: 207px;">

Calling setName() works for FileUploadField and also for GWT Hidden fields.

Colin Alworth
4 Nov 2011, 8:11 AM
Thanks for the bug report, we'll look into it and get back to you.

8 Nov 2011, 8:53 AM
The bug has been fixed (SVN rev 1836). Fix will be available in our next snapshot release later this week. We are now pushing out a snapshot release every week to Maven.