ICEfaces
  1. ICEfaces
  2. ICE-2900

dispose() no longer called on request scoped beans at correct time

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Invalid
    • Affects Version/s: 1.7RC1
    • Fix Version/s: 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces

      Description

      Basically request scoped beans are staying around after a full page refresh or a navigation rule execution. The "Text Enty" demo in Comp. Showcase uses an request scoped bean, type some text into it to update the backing bean. Then do a hard refresh of the browser of change the theme, the values are still here. This seems to be new behavior.
        
      By definition, our Request scoped beans should be getting reconstructed on full page refreshes or navigation redirects/forwards.

      I also see the request scoped persisting after the browser sends a <dispose-views> request. The procedure of opening a new View, doing some work, then disposing of the view will create a new Request scoped bean for each view, and while the View object is disposed of, the request scoped bean no longer is. If these request scoped beans add themselves to an IntervalRenderer or some such thing, the cleanup code using the disposableBeans interface no longer works, resulting in a growing collection of Renderables. Until the session expires.

        Activity

        Hide
        Mircea Toma added a comment -

        See related issue ICE-2904.

        Show
        Mircea Toma added a comment - See related issue ICE-2904 .
        Hide
        Mircea Toma added a comment -

        Issue ICE-1989 describes how and when the beans have their DisposableBean.dispose() method invoked. Also, all the beans are removed from the scope corresponding map once the DisposableBeans are notified.

        Show
        Mircea Toma added a comment - Issue ICE-1989 describes how and when the beans have their DisposableBean.dispose() method invoked. Also, all the beans are removed from the scope corresponding map once the DisposableBeans are notified.

          People

          • Assignee:
            Unassigned
            Reporter:
            Greg Dick
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: