mariusz.pala
29 Oct 2010, 12:54 AM
Hi,
in IE6 I have some Radio buttons with the same name but not in RadioGroup (because they are place in a werid way).
But in IE6 the Radio is generated without "name" attribute which causes that every radio can be selected, not just one. See the screenshot:
23068
This is generated HTML from IE Dev Toolbar:
<INPUT class=" x-form-radio" id="x-auto-814" style="LEFT: 0px; POSITION: relative; TOP: 1px" type="radio" CHECKED __eventBits="6144" value="null" />
And this is the code:
ContentPanel main = new ContentPanel();
main.setHeaderVisible(false);
main.setBodyBorder(false);
main.setBorders(false);
main.setStyleAttribute("margin", "5px");
FieldSet optionSet = new FieldSet();
optionSet.setHeading(CaraMessages.INSTANCE.taskNotificationDialogNotifyWhenTask());
optionSet.setLayout(new RowLayout(Orientation.HORIZONTAL));
optionSet.setWidth("100%");
optionSet.setHeight(130);
ContentPanel group1 = new ContentPanel();
group1.setHeaderVisible(false);
group1.setBodyBorder(false);
group1.setBorders(false);
FormLayout layout = new FormLayout();
layout.setHideLabels(true);
group1.setLayout(layout);
final Radio issueRadio = new Radio();
issueRadio.setName(RADIO_NAME);
issueRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogIssued());
group1.add(issueRadio);
final Radio completedRadio = new Radio();
completedRadio.setName(RADIO_NAME);
completedRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogCompleted());
group1.add(completedRadio);
final Radio rejectedRadio = new Radio();
rejectedRadio.setName(RADIO_NAME);
rejectedRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogRejected());
group1.add(rejectedRadio);
ContentPanel group2 = new ContentPanel();
group2.setHeaderVisible(false);
group2.setBodyBorder(false);
group2.setBorders(false);
layout = new FormLayout();
layout.setHideLabels(true);
group2.setLayout(layout);
final Radio startOverdueRadio = new Radio();
startOverdueRadio.setName(RADIO_NAME);
startOverdueRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogStartOverdue());
group2.add(startOverdueRadio, new FormData("96%"));
final Radio finishDueRadio = new Radio();
finishDueRadio.setName(RADIO_NAME);
finishDueRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogFinishDueIn());
final SpinnerField thresholdField = new SpinnerField();
thresholdField.setWidth(50);
thresholdField.setPropertyEditorType(Integer.class);
thresholdField.setMinValue(0);
thresholdField.setFormat(NumberFormat.getFormat("##0"));
thresholdField.setAllowDecimals(false);
// thresholdField.setValue(taskTemplate.getTargetDuration());
thresholdField.setFireChangeEventOnSetValue(true);
LabelField dayLabel = new LabelField(CaraMessages.INSTANCE.taskNotificationDialogDays());
MultiField<Field<?>> mf = new MultiField<Field<?>>("", finishDueRadio, thresholdField, dayLabel);
group2.add(mf, new FormData("96%"));
final Radio finishOverdueRadio = new Radio();
finishOverdueRadio.setName(RADIO_NAME);
finishOverdueRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogFinishOverdue());
group2.add(finishOverdueRadio, new FormData("96%"));
main.add(optionSet);
optionSet.add(group1, new RowData(0.5, 1));
optionSet.add(group2, new RowData(0.5, 1));
add(main);
The weird thing is that the Explorer example works fine. Actually buttons inside RadioGroup seems to be fine. So what can be wrong?
in IE6 I have some Radio buttons with the same name but not in RadioGroup (because they are place in a werid way).
But in IE6 the Radio is generated without "name" attribute which causes that every radio can be selected, not just one. See the screenshot:
23068
This is generated HTML from IE Dev Toolbar:
<INPUT class=" x-form-radio" id="x-auto-814" style="LEFT: 0px; POSITION: relative; TOP: 1px" type="radio" CHECKED __eventBits="6144" value="null" />
And this is the code:
ContentPanel main = new ContentPanel();
main.setHeaderVisible(false);
main.setBodyBorder(false);
main.setBorders(false);
main.setStyleAttribute("margin", "5px");
FieldSet optionSet = new FieldSet();
optionSet.setHeading(CaraMessages.INSTANCE.taskNotificationDialogNotifyWhenTask());
optionSet.setLayout(new RowLayout(Orientation.HORIZONTAL));
optionSet.setWidth("100%");
optionSet.setHeight(130);
ContentPanel group1 = new ContentPanel();
group1.setHeaderVisible(false);
group1.setBodyBorder(false);
group1.setBorders(false);
FormLayout layout = new FormLayout();
layout.setHideLabels(true);
group1.setLayout(layout);
final Radio issueRadio = new Radio();
issueRadio.setName(RADIO_NAME);
issueRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogIssued());
group1.add(issueRadio);
final Radio completedRadio = new Radio();
completedRadio.setName(RADIO_NAME);
completedRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogCompleted());
group1.add(completedRadio);
final Radio rejectedRadio = new Radio();
rejectedRadio.setName(RADIO_NAME);
rejectedRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogRejected());
group1.add(rejectedRadio);
ContentPanel group2 = new ContentPanel();
group2.setHeaderVisible(false);
group2.setBodyBorder(false);
group2.setBorders(false);
layout = new FormLayout();
layout.setHideLabels(true);
group2.setLayout(layout);
final Radio startOverdueRadio = new Radio();
startOverdueRadio.setName(RADIO_NAME);
startOverdueRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogStartOverdue());
group2.add(startOverdueRadio, new FormData("96%"));
final Radio finishDueRadio = new Radio();
finishDueRadio.setName(RADIO_NAME);
finishDueRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogFinishDueIn());
final SpinnerField thresholdField = new SpinnerField();
thresholdField.setWidth(50);
thresholdField.setPropertyEditorType(Integer.class);
thresholdField.setMinValue(0);
thresholdField.setFormat(NumberFormat.getFormat("##0"));
thresholdField.setAllowDecimals(false);
// thresholdField.setValue(taskTemplate.getTargetDuration());
thresholdField.setFireChangeEventOnSetValue(true);
LabelField dayLabel = new LabelField(CaraMessages.INSTANCE.taskNotificationDialogDays());
MultiField<Field<?>> mf = new MultiField<Field<?>>("", finishDueRadio, thresholdField, dayLabel);
group2.add(mf, new FormData("96%"));
final Radio finishOverdueRadio = new Radio();
finishOverdueRadio.setName(RADIO_NAME);
finishOverdueRadio.setBoxLabel(CaraMessages.INSTANCE.taskNotificationDialogFinishOverdue());
group2.add(finishOverdueRadio, new FormData("96%"));
main.add(optionSet);
optionSet.add(group1, new RowData(0.5, 1));
optionSet.add(group2, new RowData(0.5, 1));
add(main);
The weird thing is that the Explorer example works fine. Actually buttons inside RadioGroup seems to be fine. So what can be wrong?