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

          Denis Shokhalevich created issue -
          Sven Meier made changes -
          Field Original Value New Value
          Link This issue relates to WICKET-4925 [ WICKET-4925 ]
          Sven Meier made changes -
          Affects Version/s 7.0.0 [ 12322958 ]
          Assignee Sven Meier [ svenmeier ]
          Sven Meier made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 6.9.0 [ 12324357 ]
          Fix Version/s 7.0.0 [ 12322958 ]
          Resolution Fixed [ 1 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          7h 46m 1 Sven Meier 25/May/13 21:14

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development