ICEfaces
  1. ICEfaces
  2. ICE-6000

JavaScript errors when icepush is not included with icefaces-compat.jar

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: Bridge
    • Labels:
      None
    • Environment:
      ICEfaces 2

      Description

      When loading a page from an application that uses icefaces-compat (ice:* components), the compat.js is loaded into the page but there are some dependencies in the compat status.js file on icepush.js and these will throw exceptions. For example, in Chrome's console I see:

      Uncaught TypeError: Object #<an Object> has no method 'onBlockingConnectionUnstable'

      In the status.js file, the onload function appears to register some functions that are only available in icepush.js (the onBlocking* ones):


          onLoad(window, function() {
              ice.onSubmitSend(function() {
                  indctrs && on(indctrs.busy);
              });
              ice.onSubmitResponse(function() {
                  indctrs && off(indctrs.busy);
              });
              ice.onServerError(function() {
                  indctrs && on(indctrs.serverError);
              });
              ice.onBlockingConnectionUnstable(function() {
                  indctrs && on(indctrs.connectionTrouble);
              });
              ice.onBlockingConnectionLost(function() {
                  indctrs && on(indctrs.connectionLost);
              });
              ice.onSessionExpiry(function() {
                  indctrs && on(indctrs.sessionExpired);
              });
          });

        Activity

        Hide
        Deryk Sinotte added a comment -

        Re-assigning. Not sure if these things are that severe so setting priority to P3 for now.

        Show
        Deryk Sinotte added a comment - Re-assigning. Not sure if these things are that severe so setting priority to P3 for now.
        Hide
        Mircea Toma added a comment -

        Detect if ICEpush is present before registering blocking connection event listeners. Fixed in commit #22177.

        Show
        Mircea Toma added a comment - Detect if ICEpush is present before registering blocking connection event listeners. Fixed in commit #22177.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: