ICEfaces
  1. ICEfaces
  2. ICE-9027

ice.onSessionExpiry(callback) executed twice on session expiration

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: 3.3
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      Tomacat 7, Chrome, Firefox, IE
    • Assignee Priority:
      P2
    • Salesforce Case Reference:
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      The following snippet can be used instead to prevent double execution of the callback function:

       ice.onSessionExpiry(HandleExpireSession);
       var executed = false;

       function HandleExpireSession ()
       {
          if(!executed) {
              alert("This is a test");
              executed = true;
          }
       };
      Show
      The following snippet can be used instead to prevent double execution of the callback function:  ice.onSessionExpiry(HandleExpireSession);  var executed = false;  function HandleExpireSession ()  {     if(!executed) {         alert("This is a test");         executed = true;     }  };

      Description

      To reproduce:
      1. deploy attached sample application.
      2. Wait for 1 minute (for session to expire)
      3. Click on command button

      Outcome:


      the following JS will be executed twice:

      ice.onSessionExpiry(HandleExpireSession);
       
       function HandleExpireSession ()
       {
              alert("This is a test");
       };
       
       
      and result into double appearance of the alert box

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #33805 Wed Mar 06 14:41:49 MST 2013 mircea.toma ICE-9027 Wire session expired callbacks only to the global error intercepting JSF callbacks.
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/core/src/main/javascript/application.js

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Evgheni Sadovoi
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: