ICEfaces
  1. ICEfaces
  2. ICE-2202

Clean up abandoned views more aggressively and reliably

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.2, 1.7DR#2, 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      server

      Description

      See forum link.

        Activity

        Hide
        Mircea Toma added a comment -

        Dispose FacesContext and ExternalContext before replacing them with new instances.

        Show
        Mircea Toma added a comment - Dispose FacesContext and ExternalContext before replacing them with new instances.
        Hide
        Ken Fyten added a comment -

        Also modified the bridge JS to Send 'dispose-view' message more reliably from certain browsers.

        Show
        Ken Fyten added a comment - Also modified the bridge JS to Send 'dispose-view' message more reliably from certain browsers.
        Hide
        Mircea Toma added a comment -

        There is an edge case that should be handled by a fix for ICE-1627. It happens when a redirect navigation rule is executed and then the window is closed.
        When the redirect is executed ICEfaces appends the 'rvn' parameter to the redirected URL so that the view instance is reused for the next page. Since the view instance is supposed to be reused, the bridge will cancel the 'dispose-views' message that it usually sends once the window's document is unloaded otherwise the view instance needed by the next page would be disposed.

        Show
        Mircea Toma added a comment - There is an edge case that should be handled by a fix for ICE-1627 . It happens when a redirect navigation rule is executed and then the window is closed. When the redirect is executed ICEfaces appends the 'rvn' parameter to the redirected URL so that the view instance is reused for the next page. Since the view instance is supposed to be reused, the bridge will cancel the 'dispose-views' message that it usually sends once the window's document is unloaded otherwise the view instance needed by the next page would be disposed.

          People

          • Assignee:
            Unassigned
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: