Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.7.1
    • Component/s: None
    • Labels:
      None
    • Environment:
      ICEfaces, Ajax Push
    • Affects:
      Documentation (User Guide, Ref. Guide, etc.), Sample App./Tutorial

      Description

      The current RenderManager API offers a high degree of control over server-initiated rendering, but provides more power than necessary for simple applications. The SessionRenderer provides a more basic API as follows:

      public class org.icefaces.application.SessionRenderer extends java.lang.Object{
          public static synchronized void addCurrentSession(java.lang.String groupName);
          public static synchronized void removeCurrentSession(java.lang.String groupName);
          public static void render(java.lang.String groupName);
      }

      A sample invocation, such as in the auctionMonitor would be

      In a bean constructor:

      SessionRenderer.addCurrentSession("auction");

      When an event occurs:

      SessionRenderer.render("auction");

      The SessionRenderer is responsible for the maintenance of the lists of HttpSessions/PortletSessions. Lists of Views are obtained from the ICEfaces infrastructure. RenderingException is not passed to the application because, in this case, the application is only concerned with pushing updates to active users. If users are not active, they are automatically garbage collected.

        

        Issue Links

          Activity

          Repository Revision Date User Message
          ICEsoft Public SVN Repository #17259 Wed Jul 30 13:44:23 MDT 2008 ted.goddard ported to SessionRenderer (ICE-2989)
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/UserBean.java
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/AuctionBean.java
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/samples/auctionMonitor/web/WEB-INF/faces-config.xml
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/AuctionMonitorItemBean.java
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/ChatState.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #17258 Wed Jul 30 13:44:09 MDT 2008 ted.goddard ported to SessionRenderer (ICE-2989)
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/ChatState.java
          Commit graph MODIFY /icefaces/trunk/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/AuctionBean.java
          Commit graph MODIFY /icefaces/trunk/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/UserBean.java
          Commit graph MODIFY /icefaces/trunk/icefaces/samples/auctionMonitor/web/WEB-INF/faces-config.xml
          Commit graph MODIFY /icefaces/trunk/icefaces/samples/auctionMonitor/src/com/icesoft/applications/faces/auctionMonitor/beans/AuctionMonitorItemBean.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16910 Mon Jun 16 16:46:47 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : Add new SessionRenderer API; added package-level JavaDoc
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/x/core/push/package.html
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/x/package.html
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16909 Mon Jun 16 16:45:47 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : Add new SessionRenderer API; added package-level JavaDoc
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/org/icefaces/x/core/push/package.html
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/org/icefaces/x/package.html
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16908 Mon Jun 16 14:33:37 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : Add new SessionRenderer API; added package-level JavaDoc
          Files Changed
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org/icefaces/x/package.html
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16907 Mon Jun 16 14:33:07 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : Add new SessionRenderer API; added package-level JavaDoc
          Files Changed
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org/icefaces/x/core/push/package.html
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16906 Mon Jun 16 14:32:38 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : Add new SessionRenderer API; added package-level JavaDoc
          Files Changed
          Commit graph ADD /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/x/core/push/package.html
          Commit graph ADD /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/x/package.html
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16803 Wed Jun 04 16:47:28 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : SessionRenderer API; removed HttpSession from the public API
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/x/core/push/SessionRenderer.java
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/SessionDispatcher.java
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/async/render/GroupAsyncRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16802 Wed Jun 04 16:44:29 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : SessionRenderer API; removed HttpSession from the public API
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/async/render/GroupAsyncRenderer.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/org/icefaces/x/core/push/SessionRenderer.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/SessionDispatcher.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16764 Fri May 30 15:58:49 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : SessionRenderer API
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/async/render/RenderManager.java
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/async/render/AsyncRenderer.java
          Commit graph ADD /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/x/core/push
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/async/render/DelayRenderer.java
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/async/render/IntervalRenderer.java
          Commit graph ADD /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/x
          Commit graph DEL /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/application
          Commit graph ADD /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/x/core/push/SessionRenderer.java
          Commit graph ADD /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/x/core
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/async/render/GroupAsyncRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16759 Fri May 30 15:47:52 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : SessionRenderer API
          Files Changed
          Commit graph DEL /icefaces/trunk/icefaces/core/src/org/icefaces/application
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16758 Fri May 30 15:46:57 MDT 2008 jack.van.ooststroom Fixed JIRA ICE-2989 : SessionRenderer API
          Files Changed
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org/icefaces/x/core
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/async/render/DelayRenderer.java
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org/icefaces/x/core/push
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/async/render/IntervalRenderer.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/async/render/GroupAsyncRenderer.java
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org/icefaces/x/core/push/SessionRenderer.java
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org/icefaces/x
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/async/render/RenderManager.java
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/async/render/AsyncRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16694 Fri May 23 17:56:12 MDT 2008 ted.goddard using ThreadPoolExecutor for view isolation and ContextEventRepeater for ThreadPool shutdown (ICE-2989)
          Files Changed
          Commit graph MODIFY /icefaces/branches/icefaces-1.7/icefaces/core/src/org/icefaces/application/SessionRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16679 Thu May 22 17:09:01 MDT 2008 ted.goddard remove using iterator during session expiry (ICE-2989)
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/org/icefaces/application/SessionRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16546 Tue Apr 29 15:55:13 MDT 2008 ted.goddard using ThreadPoolExecutor for view isolation and ContextEventRepeater for ThreadPool shutdown (ICE-2989)
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/org/icefaces/application/SessionRenderer.java
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #16455 Wed Apr 16 08:28:22 MDT 2008 ted.goddard new simple API for rendering all views in a session (ICE-2989)
          Files Changed
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/webapp/http/servlet/MainSessionBoundServlet.java
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org/icefaces
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org/icefaces/application/SessionRenderer.java
          Commit graph ADD /icefaces/trunk/icefaces/core/src/org/icefaces/application
          Commit graph MODIFY /icefaces/trunk/icefaces/core/src/com/icesoft/faces/context/View.java

            People

            • Assignee:
              Unassigned
              Reporter:
              Ted Goddard
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: