[esb-java-dev] svn commit r171 - esb/java/trunk/modules/distribution/src/main/www/extensions/core/js

svn at wso2.com svn at wso2.com
Tue Dec 5 02:07:37 PST 2006


Author: ruwan
Date: Tue Dec  5 02:07:37 2006
New Revision: 171

Modified:
   esb/java/trunk/modules/distribution/src/main/www/extensions/core/js/proxyservices.js
Log:
fixing the endpoint unspecified bug

Modified: esb/java/trunk/modules/distribution/src/main/www/extensions/core/js/proxyservices.js
==============================================================================
--- esb/java/trunk/modules/distribution/src/main/www/extensions/core/js/proxyservices.js	(original)
+++ esb/java/trunk/modules/distribution/src/main/www/extensions/core/js/proxyservices.js	Tue Dec  5 02:07:37 2006
@@ -252,9 +252,11 @@
         var rmEnabled = "<div style='margin-left: 30px'><label style='width: 500px; text-align: left'><input type='checkbox' id='rmEnabled'" + rmChecked + "/>Enable WS-Reliable Messaging</label></div>";
 
     var wsdlInfo = "";
-    if(proxyService.wsdlKey != null) {
+    if(proxyService.wsdlKey != null && proxyService.wsdlKey != "") {
         wsdlInfo += "<table class='styled'><thead><tr><th>Resource Type</th><th>WSDL Key</th></tr></thead>";
-        wsdlInfo += "<tr><td>" + proxyService.wsdlType + "</td><td>" + proxyService.wsdlKey + "</td></tr></table>"
+        wsdlInfo += "<tr><td>" + proxyService.wsdlType + "</td><td>" + proxyService.wsdlKey + "</td></tr></table>";
+    } else {
+        wsdlInfo = "<label style='text-align: left; width: 300px'><i><font style='color: brown'>WSDL is not specified for this proxy Service</font></i></label>";
     }
 
     var strHTML = "<h4><a href='#' onClick='javascript:showProxyServices(); return false;'>Proxy Services Management</a>" +
@@ -482,6 +484,10 @@
         alert("Please specify a name for the Proxy Service");
         return;
     }
+    if(proxyService.target == "endpoint" && (proxyService.endpoint == null || proxyService.endpoint == "Select an Endpoint")) {
+        alert("Please specify an endpoint for the target or keep it as the default sequence");
+        return;
+    }
     var objDiv = document.getElementById("divAddProxyService");
     var transports = "";
     if (proxyService.checkedTransports.length == 0) {
@@ -854,6 +860,10 @@
         alert("Please specify a name for the Proxy Service");
         return;
     }
+    if(proxyService.target == "endpoint" && (proxyService.endpoint == null || proxyService.endpoint == "Select an Endpoint")) {
+        alert("Please specify an endpoint for the target or keep it as the default sequence");
+        return;
+    }
     var objDiv = document.getElementById("divAddProxyService");
     var transports = "";
     var params = "";




More information about the Esb-java-dev mailing list