I had a RadioGroup with an ajax-call working fine, but when i added it to a
FormComponentFeedbackBorder it stopped working in MSIE6. However its working in
MSIE8 and Firefox.
If I remove the FormComponentFeedbackBorder it starts working again.
I traced it down to FormComponent.class where
getRequest().getParameters(getInputName()) equals null for MSI6, and I get the
name of the Radio in Firefox and MSIE8
/Daniel
Code snippet:
Java:
final FormComponentFeedbackBorder bosattBorder = new
FormComponentFeedbackBorder("bosattSverige.border");
final RadioGroup<Boolean> group = new
RadioGroup<Boolean>("sokande.bosattSverige");
final Radio<Boolean> bosattJa = new Radio<Boolean>("bosattJa", new
Model<Boolean>(Boolean.TRUE));
Radio<Boolean> bosattNej = new Radio<Boolean>("bosattNej", new
Model<Boolean>(Boolean.FALSE));
group.add(bosattJa);
group.add(bosattNej);
group.add(new AjaxFormChoiceComponentUpdatingBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
System.out.println(".onUpdate()");
}
});
group.setOutputMarkupId(true);
group.setOutputMarkupPlaceholderTag(true);
bosattBorder.add(group);
add(bosattBorder);
html:
<div wicket:id="bosattSverige.border" id="bosatt">
<fieldset>
<legend><span>Bor du i Sverige?</span></legend>
<div id="bosatt" wicket:id="sokande.bosattSverige">
<div class="radio alt">
<label><input type="radio" value="yes" name="bosattRadioGroup"
id="bosattJa" wicket:id="bosattJa"/>Ja</label>
</div>
<div class="radio alt">
<label><input type="radio" value="no" name="bosattRadioGroup"
id="bosattNej" wicket:id="bosattNej" />Nej</label>
</div>
</div>
</fieldset>
</div>