ICEmobile
  1. ICEmobile
  2. MOBI-196

mobi:ajax support regression on mobi:commandButton

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Williams
    • Fix Version/s: EE 1.0 RC1
    • Component/s: None
    • Labels:
      None
    • Environment:
      jsf 2 icefaces 3

      Description

      regression was introduced to mobi:ajax support with introduction of panelConfirmation and submitNotification components
      and was caught with updated tests which include mobi:ajax listener.
      Updated support code and test from ace project for ace:ajax where different and applicable.

        Activity

        Hide
        Judy Guglielmin added a comment - - edited

        also noted that 'onComplete', 'onError' and 'onSuccess' for mobi:ajax also not working correctly, so working on that too.
        This was not adequately tested in previous releases

        noted that code from mobi.AjaxReuqest function(cfg) :-
        ....
        function (onBeforeSubmit, onBeforeUpdate, onAfterUpdate, onNetworkError, onServerError) {
        var context = {};
        onAfterUpdate(function (responseXML) {
        if (cfg.onsuccess && !cfg.onsuccess.call(context, responseXML, null /status/, null /xhr/))

        { return; }

        mobi.AjaxResponse.call(context, responseXML);
        });
        if (cfg.oncomplete) {
        onAfterUpdate(function (responseXML)

        { cfg.oncomplete.call(context, null /*xhr*/, null /*status*/, context.args); }

        );
        }
        if (cfg.onerror) {
        onNetworkError(function (responseCode, errorDescription)

        { cfg.onerror.call(context, null /*xhr*/, responseCode /*status*/, errorDescription /*error description*/) }

        );
        onServerError(function (responseCode, responseText)

        { cfg.onerror.call(context, null /*xhr*/, responseCode /*status*/, responseText /*error description*/) }

        );
        }

        whos that there is a cfg.onerror.call that is not being interpreted correctly. Original ace code has changed considerably and makes us of jquery for the callback,.

        Show
        Judy Guglielmin added a comment - - edited also noted that 'onComplete', 'onError' and 'onSuccess' for mobi:ajax also not working correctly, so working on that too. This was not adequately tested in previous releases noted that code from mobi.AjaxReuqest function(cfg) :- .... function (onBeforeSubmit, onBeforeUpdate, onAfterUpdate, onNetworkError, onServerError) { var context = {}; onAfterUpdate(function (responseXML) { if (cfg.onsuccess && !cfg.onsuccess.call(context, responseXML, null / status /, null / xhr /)) { return; } mobi.AjaxResponse.call(context, responseXML); }); if (cfg.oncomplete) { onAfterUpdate(function (responseXML) { cfg.oncomplete.call(context, null /*xhr*/, null /*status*/, context.args); } ); } if (cfg.onerror) { onNetworkError(function (responseCode, errorDescription) { cfg.onerror.call(context, null /*xhr*/, responseCode /*status*/, errorDescription /*error description*/) } ); onServerError(function (responseCode, responseText) { cfg.onerror.call(context, null /*xhr*/, responseCode /*status*/, responseText /*error description*/) } ); } whos that there is a cfg.onerror.call that is not being interpreted correctly. Original ace code has changed considerably and makes us of jquery for the callback,.
        Hide
        Judy Guglielmin added a comment -

        assigned to Mircea as per Steve's instruction

        Show
        Judy Guglielmin added a comment - assigned to Mircea as per Steve's instruction

          People

          • Assignee:
            Judy Guglielmin
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: