ICEfaces
  1. ICEfaces
  2. ICE-1989

ViewListener.viewCreated() not being called

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.6.2, 1.7DR#1, 1.7
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      n/a
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.)

      Description

      viewCreated() is never called

        Activity

        Hide
        Mircea Toma added a comment -

        Removed ViewListener. Rectored how beans are notified to dispose their resources. Application beans need to implement com.icesoft.faces.context.DisposableBean interface to receive the notification based on what their scope is.
        When in scope:

        • request - beans are disposed when view is disposed
        • session - beans are disposed when session expires
        • application - beans are disposed when context is destroyed

        Also, for beans in request scope and concurrentDOMViews=false the view is reused on reload so the application beans are reused as well (no disposing).

        Show
        Mircea Toma added a comment - Removed ViewListener. Rectored how beans are notified to dispose their resources. Application beans need to implement com.icesoft.faces.context.DisposableBean interface to receive the notification based on what their scope is. When in scope: request - beans are disposed when view is disposed session - beans are disposed when session expires application - beans are disposed when context is destroyed Also, for beans in request scope and concurrentDOMViews=false the view is reused on reload so the application beans are reused as well (no disposing).
        Hide
        Mircea Toma added a comment -

        Rolled back ViewListener removal for backwards compatibility reasons. Marked ViewListener as deprecated instead.

        Show
        Mircea Toma added a comment - Rolled back ViewListener removal for backwards compatibility reasons. Marked ViewListener as deprecated instead.
        Hide
        Mircea Toma added a comment -

        Applied fix to 1.6 branch.

        Show
        Mircea Toma added a comment - Applied fix to 1.6 branch.

          People

          • Assignee:
            Unassigned
            Reporter:
            Philip Breau
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: