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

AbstractAjaxBehavior.unbind does not clean stored reference to host component

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.5.0, 7.0.0-M1
    • 6.9.0, 7.0.0-M1
    • wicket
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: