Author: kpiwko(a)redhat.com
Date: 2010-02-12 08:39:26 -0500 (Fri, 12 Feb 2010)
New Revision: 12047
Modified:
branches/community/Seam_2_2/examples/seambay/view/test.js
Log:
JBSEAM-4541, added active flag to ServiceMetadata
Modified: branches/community/Seam_2_2/examples/seambay/view/test.js
===================================================================
--- branches/community/Seam_2_2/examples/seambay/view/test.js 2010-02-12 11:59:51 UTC (rev
12046)
+++ branches/community/Seam_2_2/examples/seambay/view/test.js 2010-02-12 13:39:26 UTC (rev
12047)
@@ -14,6 +14,7 @@
this.group = group;
this.parameters = new Array();
this.conversational = false;
+ this.active = false;
webServices[name] = this;
@@ -24,6 +25,7 @@
ServiceMetadata.prototype.getRequest = function() { return this.request; };
ServiceMetadata.prototype.setConversational = function(val) { this.conversational =
val; };
ServiceMetadata.prototype.isConversational = function() { return this.conversational;
};
+ ServiceMetadata.prototype.setActive = function(val) { this.active = val; };
}
// start of web service definitions
@@ -291,6 +293,7 @@
req.open("POST", getEndpoint(), true);
req.setRequestHeader("Content-type", "text/xml");
req.send(document.getElementById("serviceRequest").value);
+ selectedService.setActive(true);
}
function receiveResponse(req)
@@ -309,7 +312,8 @@
document.getElementById("conversationId").value = cid;
}
}
-
+ selectedService.setActive(false);
+
if (req.status != 200)
{
alert("There was an error processing your request. Error code: " +
req.status);
@@ -367,4 +371,4 @@
}
}
-initServices();
\ No newline at end of file
+initServices();
Show replies by date