Click
  1. Click
  2. CLK-666

Adding controls to page or container should replace existing control with the same name

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: core
    • Labels:
      None

      Description

      When adding controls, Click throws an exception if the Page or Container already contains a control with the same name. Page and Panel models behave similarly.

      This behavior protects users from accidentally adding controls with the same name, but at the same time doesn't work well for stateful pages where existing controls should be replaced.

      The proposed change is to not throw an exception and simply replace the existing control or model object.

        Activity

          People

          • Assignee:
            Bob Schellink
            Reporter:
            Bob Schellink
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development