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

        Philip Breau created issue -
        Ken Fyten made changes -
        Field Original Value New Value
        Assignee Mircea Toma [ mircea.toma ]
        Ken Fyten made changes -
        Assignee Priority P3
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14813 Thu Sep 13 10:58:50 MDT 2007 mircea.toma Refactor how beans listen dispose events -- ICE-1989, ICE-1990
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/xmlhttp/PersistentFacesState.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/MainSessionBoundServlet.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/MainServlet.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/BridgeExternalContext.java
        Commit graph ADD /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DisposableBean.java
        Commit graph ADD /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/core/DisposeBeans.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/View.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14814 Thu Sep 13 10:59:35 MDT 2007 mircea.toma Refactor how beans listen dispose events -- ICE-1989, ICE-1990
        Files Changed
        Commit graph DEL /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/ViewListener.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14816 Thu Sep 13 11:32:53 MDT 2007 mircea.toma Bring code up to date. See issues ICE-1989 and ICE-1990.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/ClockBean.java
        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).
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14817 Thu Sep 13 12:50:57 MDT 2007 patrick.corless ICE-1990 and ICE-1989, update user bean for new disposeable bean interface.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/UserBean.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14818 Thu Sep 13 14:15:58 MDT 2007 mircea.toma Add javadocs -- ICE-1989, ICE-1990
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/DisposableBean.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14819 Thu Sep 13 16:44:56 MDT 2007 mircea.toma Bring code up to date. See issues ICE-1989 and ICE-1990.
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/tutorial/timezone3/src/com/icesoft/tutorial/TimeZoneBean.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/tutorial/timezone7/src/com/icesoft/tutorial/TimeZoneBean.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/tutorial/timezone5/src/com/icesoft/tutorial/TimeZoneBean.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/tutorial/timezone4/src/com/icesoft/tutorial/TimeZoneBean.java
        Commit graph MODIFY /icefaces/trunk/icefaces/samples/tutorial/timezone6/src/com/icesoft/tutorial/TimeZoneBean.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14820 Thu Sep 13 17:07:55 MDT 2007 mircea.toma Put back ViewListener interface but mark it deprecated -- ICE-1989 , ICE-1990
        Files Changed
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/xmlhttp/PersistentFacesState.java
        Commit graph ADD /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/ViewListener.java
        Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/View.java
        Mircea Toma made changes -
        Affects [Documentation (User Guide, Ref. Guide, etc.)]
        Ken Fyten made changes -
        Fix Version/s 1.7DR#1 [ 10100 ]
        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.
        Ken Fyten made changes -
        Fix Version/s 1.6.2 [ 10111 ]
        Ken Fyten made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #14997 Mon Oct 22 12:32:43 MDT 2007 mircea.toma Refactor how beans listen dispose events -- ICE-1989, ICE-1990
        Files Changed
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/MainSessionBoundServlet.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/MainServlet.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/context/ViewListener.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/samples/tutorial/timezone5/src/com/icesoft/tutorial/TimeZoneBean.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/webapp/xmlhttp/PersistentFacesState.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/samples/tutorial/timezone7/src/com/icesoft/tutorial/TimeZoneBean.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/context/BridgeExternalContext.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/samples/tutorial/timezone4/src/com/icesoft/tutorial/TimeZoneBean.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/context/View.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/samples/tutorial/timezone6/src/com/icesoft/tutorial/TimeZoneBean.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/samples/tutorial/timezone3/src/com/icesoft/tutorial/TimeZoneBean.java
        Commit graph MODIFY /icefaces/branches/icefaces-1.6/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/ClockBean.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #15001 Mon Oct 22 13:19:18 MDT 2007 mircea.toma Refactor how beans listen dispose events -- ICE-1989, ICE-1990
        Files Changed
        Commit graph ADD /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/webapp/http/core/DisposeBeans.java
        Commit graph ADD /icefaces/branches/icefaces-1.6/icefaces/core/src/com/icesoft/faces/context/DisposableBean.java
        Hide
        Mircea Toma added a comment -

        Applied fix to 1.6 branch.

        Show
        Mircea Toma added a comment - Applied fix to 1.6 branch.
        Mircea Toma made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 1.7 [ 10080 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Priority P3
        Assignee Mircea Toma [ mircea.toma ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: