ICEfaces
  1. ICEfaces
  2. ICE-6232

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 2.0-Beta2
    • Fix Version/s: 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
        Mircea Toma added a comment -

        This issue was fixed in commit #22177.

        Show
        Mircea Toma added a comment - This issue was fixed in commit #22177.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Koteswararao Pulivarthi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: