Details
-
Type: Bug
-
Status: Closed
-
Priority: 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.
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.
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) :-
{ return; }....
function (onBeforeSubmit, onBeforeUpdate, onAfterUpdate, onNetworkError, onServerError) {
var context = {};
onAfterUpdate(function (responseXML) {
if (cfg.onsuccess && !cfg.onsuccess.call(context, responseXML, null /status/, null /xhr/))
mobi.AjaxResponse.call(context, responseXML);
{ cfg.oncomplete.call(context, null /*xhr*/, null /*status*/, context.args); }});
if (cfg.oncomplete) {
onAfterUpdate(function (responseXML)
);
{ cfg.onerror.call(context, null /*xhr*/, responseCode /*status*/, errorDescription /*error description*/) }}
if (cfg.onerror) {
onNetworkError(function (responseCode, errorDescription)
);
{ cfg.onerror.call(context, null /*xhr*/, responseCode /*status*/, responseText /*error description*/) }onServerError(function (responseCode, responseText)
);
}
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,.