ICEfaces
  1. ICEfaces
  2. ICE-8625

AllWindowsClosed annotation not calling the method when the browser is closed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: EE-3.0.0.GA_P01, 3.2.BETA1, 3.2
    • Fix Version/s: 3.2
    • Component/s: Bridge, Framework
    • Labels:
      None
    • Environment:
      All

      Description


      When using the @AllWindowsClosed annotation for a method in a SessionScoped bean this method is not called when all browser windows are closed for a users session.

      This was working for the EE 3.0.0 release.

        Activity

        Hide
        Arran Mccullough added a comment - - edited

        Attached test case to reproduce issue.

        Steps:

        • Load welcomeICEfaces.jsf
        • In the server logs it will show a Session and View scoped bean being constructed.
        • Close the browser window, the logs for the AllWindowsClosed annotation is not shown.
        Show
        Arran Mccullough added a comment - - edited Attached test case to reproduce issue. Steps: Load welcomeICEfaces.jsf In the server logs it will show a Session and View scoped bean being constructed. Close the browser window, the logs for the AllWindowsClosed annotation is not shown.
        Hide
        Mircea Toma added a comment - - edited

        AllWindowClosed annotation works just fine as long the application is configured with org.icefaces.lazyWindowScope set to false or the application uses window scoped beans in its pages. By doing so the bridge will then send the disposeWindow request that will dispose the window scoped beans and eventually when all windows are closed AllWindowClosed annotated methods will be called.
        So the attached test needs to have its configuration modified in order for it to work as expected.

        Show
        Mircea Toma added a comment - - edited AllWindowClosed annotation works just fine as long the application is configured with org.icefaces.lazyWindowScope set to false or the application uses window scoped beans in its pages. By doing so the bridge will then send the disposeWindow request that will dispose the window scoped beans and eventually when all windows are closed AllWindowClosed annotated methods will be called. So the attached test needs to have its configuration modified in order for it to work as expected.

          People

          • Assignee:
            Unassigned
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: