You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Daniel Pote (JIRA)" <ji...@apache.org> on 2009/11/12 16:09:39 UTC

[jira] Created: (WICKET-2576) RadioGroup in FormComponentFeedbackBorder

RadioGroup in  FormComponentFeedbackBorder
------------------------------------------

                 Key: WICKET-2576
                 URL: https://issues.apache.org/jira/browse/WICKET-2576
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4.3, 1.4.0
         Environment: MSIE6
            Reporter: 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

I tried upgrading wicket to 1.4.3 but no effect.
 
 
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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-2576) RadioGroup in FormComponentFeedbackBorder

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-2576.
-----------------------------------

      Assignee: Igor Vaynberg
    Resolution: Cannot Reproduce

tried with IETester on 1.4.10 and it seemed to work.

> RadioGroup in  FormComponentFeedbackBorder
> ------------------------------------------
>
>                 Key: WICKET-2576
>                 URL: https://issues.apache.org/jira/browse/WICKET-2576
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.0, 1.4.3
>         Environment: MSIE6
>            Reporter: Daniel Pote
>            Assignee: Igor Vaynberg
>
> 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
> I tried upgrading wicket to 1.4.3 but no effect.
>  
>  
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-2576) RadioGroup in FormComponentFeedbackBorder

Posted by "Daniel Pote (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12781928#action_12781928 ] 

Daniel Pote commented on WICKET-2576:
-------------------------------------

The feedback-message ${label} gives a null-link for RadioGroups in IE6 too. Other components works.


> RadioGroup in  FormComponentFeedbackBorder
> ------------------------------------------
>
>                 Key: WICKET-2576
>                 URL: https://issues.apache.org/jira/browse/WICKET-2576
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.4.0, 1.4.3
>         Environment: MSIE6
>            Reporter: 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
> I tried upgrading wicket to 1.4.3 but no effect.
>  
>  
> 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>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.