Tapestry
  1. Tapestry
  2. TAPESTRY-1761

TreeDataView's initialze() is not called

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1, 4.1.1, 4.1.2, 4.1.3
    • Fix Version/s: 4.1.6
    • Component/s: Contrib
    • Labels:
      None

      Description

      The TreeDataView has a method "public void initialize()" for resetting private members, but it seems it is not called when the component is returned to the pool.
      This causes a memory leak as m_objTreeRowObject can hold a reference to a TreeRowObject Object and thus to an entire tree structure.

      I propose that the component implement the PageDetachListener interface and calls initialize:

      public void pageDetached(PageEvent event)

      { initialize(); }

      Thank you

        Activity

        Hide
        Andreas Andreou added a comment -

        thx

        Show
        Andreas Andreou added a comment - thx

          People

          • Assignee:
            Andreas Andreou
            Reporter:
            Jacob Poder
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development