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

LoadableDeatachableModel onDetach() invoked after nulling the model

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4-RC4
    • wicket
    • None
    • Any enviroment.

    Description

      In LoadableDeatachableModel code for detach():

      @Override
      public void detach()
      {
      if (attached)

      { attached = false; transientModelObject = null; onDetach(); }

      }

      onDetach() is called after nulling the object. So, its impossible to "cleanup"
      the model object.

      If the onDetach() is invoked before than nulling, it's done.

      Greetings!

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            maurociancio Mauro Ciancio
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified