Wicket
  1. Wicket
  2. WICKET-1271

Script in RenderHead method of AjaxFormChoiceComponentUpdatingBehavior needs fixing

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0-final
    • Fix Version/s: 1.3.1
    • Component/s: wicket
    • Labels:
      None

      Description

      The script in the renderHead method of AjaxFormChoiceComponentUpdatingBehavior assumes that the Radio Component will be the immediate child of the RadioGroup Component, But in some or in most of the cases that is not correct.

      That is not the case even in the Wicket Examples, in examples the hierarchy is RadioGroup/ListView/Radio.

      I have maodied the rendered script to work for RadioGroup/ListView/Radio hierarchy.

      And the Patch is attached.

      Regards
      Dipu

        Issue Links

          Activity

          Rens Verhage made changes -
          Attachment patch.txt [ 12374041 ]
          Igor Vaynberg made changes -
          Resolution Fixed [ 1 ]
          Assignee Johan Compagner [ jcompagner ] Igor Vaynberg [ ivaynberg ]
          Fix Version/s 1.3.1 [ 12312500 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Igor Vaynberg made changes -
          Link This issue duplicates WICKET-1258 [ WICKET-1258 ]
          Igor Vaynberg made changes -
          Assignee Johan Compagner [ jcompagner ]
          Dipu C Seminlal made changes -
          Description The script in the renderHead method of AjaxFormChoiceComponentUpdatingBehavior assumes that the Radio Component will be the immediate child of the RadioGroup Component, But in some or in most of the cases that is not correct.

          That is not the case even in the Wicket Examples, in examples the hierarchy is RadioGroup/ListView/Radio.

          The script in the renderHead method of AjaxFormChoiceComponentUpdatingBehavior assumes that the Radio Component will be the immediate child of the RadioGroup Component, But in some or in most of the cases that is not correct.

          That is not the case even in the Wicket Examples, in examples the hierarchy is RadioGroup/ListView/Radio.

          I have maodied the rendered script to work for RadioGroup/ListView/Radio hierarchy.

          And the Patch is attached.

          Regards
          Dipu


          Environment any
          Dipu C Seminlal made changes -
          Field Original Value New Value
          Attachment AjaxFormChoiceComponentUpdatingBehavior_patch_revision_610340.txt [ 12372786 ]
          Dipu C Seminlal created issue -

            People

            • Assignee:
              Igor Vaynberg
              Reporter:
              Dipu C Seminlal
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development