svn commit r9387 - trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit r9387 - trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators

svn-9
Author: indika
Date: Thu Nov  1 08:44:15 2007
New Revision: 9387

Modified:
   trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/dblookup_mediator.js
   trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/dbreport_mediator.js
   trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/xquery_mediator.js
Log:
fixed some IE issue


Modified: trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/dblookup_mediator.js
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/dblookup_mediator.js (original)
+++ trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/dblookup_mediator.js Thu Nov  1 08:44:15 2007
@@ -488,9 +488,29 @@
         }
         var namespce = getnamespase(position);
         if (window.ActiveXObject) {
+            if (state == 0) {
+                if (propertytrs[j].children[0].children[0].value != "" && propertytrs[j].children[2].children[0].value != "") {
 
-            if (propertytrs[j].children[0].children[0].value != "" && propertytrs[j].children[2].children[0].value != "") {
+                    var propertystr = "<syn:parameter xmlns:syn='http://ws.apache.org/ns/synapse' type='"
+                        + propertytrs[j].children[0].children[0].value + "' ";
 
+                    var propertytype = propertytrs[j].children[1].children[0].options[
+                        propertytrs[j].children[1].children[0].selectedIndex].value;
+                    if (propertytype == "value") {
+                        propertystr += "value='" + propertytrs[j].children[2].children[0].value + "' ";
+                    } else if (propertytype == "expression") {
+                        propertystr += "expression='" + propertytrs[j].children[2].children[0].value + "' ";
+                    }
+                    if (namespce != undefined && namespce != null) {
+                        for (var g = 0; g < namespce.length; g++) {
+                            if (namespce[g].name != "xmlns:syn") {
+                                propertystr += namespce[g].name + "='" + namespce[g].value + "' ";
+                            }
+                        }
+                    }
+                    statement.appendChild(createesbelement(propertystr + "/>"));
+                }
+            } else {
                 var propertystr = "<syn:parameter xmlns:syn='http://ws.apache.org/ns/synapse' type='"
                     + propertytrs[j].children[0].children[0].value + "' ";
 
@@ -510,7 +530,6 @@
                 }
                 statement.appendChild(createesbelement(propertystr + "/>"));
             }
-
         } else {
 
             if (state == 0) {

Modified: trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/dbreport_mediator.js
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/dbreport_mediator.js (original)
+++ trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/dbreport_mediator.js Thu Nov  1 08:44:15 2007
@@ -491,9 +491,29 @@
 
         var namespce = getnamespasedbr(position);
         if (window.ActiveXObject) {
+            if (state == 0) {
+                if (propertytrs[j].children[0].children[0].value != "" && propertytrs[j].children[2].children[0].value != "") {
 
-            if (propertytrs[j].children[0].children[0].value != "" && propertytrs[j].children[2].children[0].value != "") {
+                    var propertystr = "<syn:parameter xmlns:syn='http://ws.apache.org/ns/synapse' type='"
+                        + propertytrs[j].children[0].children[0].value + "' ";
 
+                    var propertytype = propertytrs[j].children[1].children[0].options[
+                        propertytrs[j].children[1].children[0].selectedIndex].value;
+                    if (propertytype == "value") {
+                        propertystr += "value='" + propertytrs[j].children[2].children[0].value + "' ";
+                    } else if (propertytype == "expression") {
+                        propertystr += "expression='" + propertytrs[j].children[2].children[0].value + "' ";
+                    }
+                    if (namespce != undefined && namespce != null) {
+                        for (var g = 0; g < namespce.length; g++) {
+                            if (namespce[g].name != "xmlns:syn") {
+                                propertystr += namespce[g].name + "='" + namespce[g].value + "' ";
+                            }
+                        }
+                    }
+                    statement.appendChild(createesbelement(propertystr + "/>"));
+                }
+            } else {
                 var propertystr = "<syn:parameter xmlns:syn='http://ws.apache.org/ns/synapse' type='"
                     + propertytrs[j].children[0].children[0].value + "' ";
 
@@ -513,7 +533,6 @@
                 }
                 statement.appendChild(createesbelement(propertystr + "/>"));
             }
-
         } else {
             if (state == 0) {
                 if (propertytrs[j].childNodes[0].childNodes[0].value != ""

Modified: trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/xquery_mediator.js
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/xquery_mediator.js (original)
+++ trunk/esb/java/modules/distribution/src/main/www/extensions/core/js/mediators/xquery_mediator.js Thu Nov  1 08:44:15 2007
@@ -161,9 +161,34 @@
         }
         var namespce = getnamespasexquery(position);
         if (window.ActiveXObject) {
+            if (!validate) {
+                if (propertytrs[j].children[0].children[0].value != "" && propertytrs[j].children[0].children[0].value != "Select A Value" && propertytrs[j].children[1].children[0].value != "") {
 
-            if (propertytrs[j].children[0].children[0].value != "" && propertytrs[j].children[0].children[0].value != "Select A Value" && propertytrs[j].children[1].children[0].value != "") {
+                    var propertystr = "<syn:variable xmlns:syn='http://ws.apache.org/ns/synapse' type='"
+                        + propertytrs[j].children[0].children[0].value + "' name='"
+                        + propertytrs[j].children[1].children[0].value + "' ";
 
+                    var propertytype = propertytrs[j].children[2].children[0].options[
+                        propertytrs[j].children[2].children[0].selectedIndex].value;
+                    if (propertytype == "value") {
+                        propertystr += "value='" + propertytrs[j].children[3].children[0].value + "' ";
+                    } else if (propertytype == "expression") {
+                        propertystr += "expression='" + propertytrs[j].children[3].children[0].value + "' ";
+                    }
+                    if (namespce != undefined && namespce != null) {
+                        for (var g = 0; g < namespce.length; g++) {
+                            if (namespce[g].name != "xmlns:syn") {
+                                propertystr += namespce[g].name + "='" + namespce[g].value + "' ";
+                            }
+                        }
+                    }
+                    var variablekeyinput = document.getElementById("registry_key" + pi.toString());
+                    if (variablekeyinput != null && variablekeyinput != undefined && variablekeyinput.value != "") {
+                        propertystr += "key='" + variablekeyinput.value + "' ";
+                    }
+                    mediator.appendChild(createesbelement(propertystr + "/>"));
+                }
+            } else {
                 var propertystr = "<syn:variable xmlns:syn='http://ws.apache.org/ns/synapse' type='"
                     + propertytrs[j].children[0].children[0].value + "' name='"
                     + propertytrs[j].children[1].children[0].value + "' ";
@@ -187,6 +212,7 @@
                     propertystr += "key='" + variablekeyinput.value + "' ";
                 }
                 mediator.appendChild(createesbelement(propertystr + "/>"));
+
             }
 
         } else {
@@ -421,7 +447,7 @@
     var correctedps = null;
     if (si != null && si != undefined) {
         var deletedsi = getdeletedpreviousvariables(parseInt(si));
-        if (deletedsi != undefined && deletedsi != null != 0) {
+        if (deletedsi != undefined && deletedsi != null && deletedsi != 0) {
             var csi = si - deletedsi ;
             if (csi != undefined && csi != null) {
                 correctedps = pindex.toString() + "." + (csi).toString();

_______________________________________________
Esb-java-dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev