public void setRequiresSelection(final boolean requiresSelection) {
this.requiresSelection = requiresSelection;
if (requiresSelection) {
- if (getChildren().size() > 0) {
+ if ((getChildren().size() > 0) && (selectedButton == null)) {
setSelected(1);
}
}
group.addRadioButton(i18n.getString("radioOption1"));
group.addRadioButton(i18n.getString("radioOption2"), true);
group.addRadioButton(i18n.getString("radioOption3"));
+ group.setRequiresSelection(true);
List<String> comboValues = new ArrayList<String>();
comboValues.add(i18n.getString("comboBoxString0"));