Subversion Repository Public Repository

litesoft

Diff Revisions 634 vs 635 for /trunk/GWT_Sandbox/FormEngine/src/com/temp/client/foundation/widget/input/RadioButtonInputField.java

Diff revisions: vs.
  @@ -35,7 +35,27 @@
35 35
36 36 @Override
37 37 protected InputFieldAccessor<Boolean> createBaseAccessor() {
38 - RadioButton field = new RadioButton(Validate.noEmpty( "group", group ));
38 + RadioButton field = new OurRadioButton(Validate.noEmpty( "group", group ));
39 39 return createBaseAccessor(new RadioButtonValueAdapter(field), field, STYLE, field);
40 40 }
41 +
42 + private static class OurRadioButton extends RadioButton {
43 +
44 + // For NameToID
45 + private String name;
46 +
47 + public OurRadioButton(String groupName) {
48 + super(groupName);
49 + }
50 +
51 + @Override
52 + public String getName() {
53 + return name;
54 + }
55 +
56 + @Override
57 + public void setName(String name) {
58 + this.name = name;
59 + }
60 + }
41 61 }