Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5205

AbstractAjaxBehavior.unbind does not clean stored reference to host component

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: