Bug with RadioGroup in FormComponentFeedbackBorder

2009-11-11 Thread Daniel Pote
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 RadioGroupBoolean group = new 
RadioGroupBoolean(sokande.bosattSverige);
  final RadioBoolean bosattJa = new RadioBoolean(bosattJa, new 
ModelBoolean(Boolean.TRUE));
  RadioBoolean bosattNej = new RadioBoolean(bosattNej, new 
ModelBoolean(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
   legendspanBor du i Sverige?/span/legend
   div id=bosatt wicket:id=sokande.bosattSverige
div class=radio alt
 labelinput type=radio value=yes name=bosattRadioGroup 
id=bosattJa wicket:id=bosattJa/Ja/label
/div
div class=radio alt
 labelinput type=radio value=no name=bosattRadioGroup 
id=bosattNej wicket:id=bosattNej /Nej/label
/div
   /div
  /fieldset
 /div


Re: Bug with RadioGroup in FormComponentFeedbackBorder

2009-11-11 Thread Daniel Pote
Has anyone seen this before, and maybe know a workaround for this problem?
 
Regards,
Daniel

 Daniel Pote daniel.p...@migrationsverket.se 2009-11-11 11:00 
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 RadioGroupBoolean group = new 
RadioGroupBoolean(sokande.bosattSverige);
  final RadioBoolean bosattJa = new RadioBoolean(bosattJa, new 
ModelBoolean(Boolean.TRUE));
  RadioBoolean bosattNej = new RadioBoolean(bosattNej, new 
ModelBoolean(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
   legendspanBor du i Sverige?/span/legend
   div id=bosatt wicket:id=sokande.bosattSverige
div class=radio alt
 labelinput type=radio value=yes name=bosattRadioGroup 
id=bosattJa wicket:id=bosattJa/Ja/label
/div
div class=radio alt
 labelinput type=radio value=no name=bosattRadioGroup 
id=bosattNej wicket:id=bosattNej /Nej/label
/div
   /div
  /fieldset
/div