PDA

View Full Version : [FIXED] ...widget.form.Radio messed up. "name"-Attribute does not appear in HTML.



plusminus
2 May 2008, 11:09 AM
Taken from the GXT-Explorer:


...
Radio radio = new Radio();
radio.setName("radio");
radio.setFieldLabel("Red");
radio.setValue(true);

Radio radio2 = new Radio();
radio2.setName("radio");
radio2.setFieldLabel("Blue");
...The "name"-attributes remain empty, what leads to the problem that all Radios in the whole UI share the same name and only one of all Radios can be checked at a time.

....
<td align="left" style="vertical-align: top;">
<div id="my-174" class="x-form-check-wrap x-form-field" hidefocus="hideFocus">
<input class="x-form-radio" type="radio" name="" style="margin-top: 3px;"/>
</div>
</td>
<td align="left" style="vertical-align: top;">
<div id="my-175" class="x-form-group-label">Red</div>
</td>
<td align="left" style="vertical-align: top;">
<div id="my-176" class="x-form-check-wrap x-form-field" hidefocus="hideFocus">
<input class="x-form-radio" type="radio" name="" style="margin-top: 3px;"/>
</div>
</td>
<td align="left" style="vertical-align: top;">
<div id="my-177" class="x-form-group-label">Blue</div>
</td>
.../:)

darrellmeyer
2 May 2008, 1:19 PM
This has already been fixed in SVN. Thanks.