Wicket
  1. Wicket
  2. WICKET-5205

AbstractAjaxBehavior.unbind does not clean stored reference to host component

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.0, 7.0.0-M1
    • Fix Version/s: 6.9.0, 7.0.0-M1
    • Component/s: wicket
    • Labels:
      None

      Description

      Reference to a component stored on bind does not cleaned properly on unbind.
      Instead, local paremeter is cleaned:

      /** the component that this handler is bound to. */
      private Component component;

      @Override
      public final void bind(final Component hostComponent)

      { ... component = hostComponent; ... }

      @Override
      public final void unbind(Component component)

      { onUnbind(); component = null; super.unbind(component); }

      It prevents reusing AbstractAjaxBehavior.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Sven Meier
              Reporter:
              Denis Shokhalevich
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development