geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r818105 - in /geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard: destination.jsp plan.jsp
Date Wed, 23 Sep 2009 13:50:33 GMT
Author: xuhaihong
Date: Wed Sep 23 13:50:33 2009
New Revision: 818105

URL: http://svn.apache.org/viewvc?rev=818105&view=rev
Log:
GERONIMO-4891 Null destination error when browsing a new created jms resource group.

Modified:
    geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/destination.jsp
    geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/plan.jsp

Modified: geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/destination.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/destination.jsp?rev=818105&r1=818104&r2=818105&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/destination.jsp
(original)
+++ geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/destination.jsp
Wed Sep 23 13:50:33 2009
@@ -29,6 +29,16 @@
         addErrorMessage("<portlet:namespace/>", '<fmt:message key="jmswizard.common.emptyText"/>');
         return false;    
     }
+    var jmsForm = document.getElementById(<portlet:namespace/>formName); 
+    var index = 0;
+    while(jmsForm.elements["destination.${data.currentDestinationID}.instance-config-" +
index]){
+        var currentElement = jmsForm.elements["destination.${data.currentDestinationID}.instance-config-"
+ index];
+        if(currentElement.title == "PhysicalName" && isEmptyString(currentElement.value)){
+            currentElement.value = jmsForm.elements["destination.${data.currentDestinationID}.name"].value;
+            break;             
+        }
+        index++;
+    }
     return true;
 }
 </script>

Modified: geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/plan.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/plan.jsp?rev=818105&r1=818104&r2=818105&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/plan.jsp
(original)
+++ geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard/plan.jsp
Wed Sep 23 13:50:33 2009
@@ -62,7 +62,7 @@
     <!-- STATUS FIELD: Deployment Plan -->
       <tr>
         <th valign="top" style="min-width: 140px"><div align="right"><label
for="<portlet:namespace/>deploymentPlan"><fmt:message key="jmswizard.plan.deploymentPlan"
/>:</label></div></th>
-        <td><textarea rows="30" cols="60" id="<portlet:namespace/>deploymentPlan"
readonly>${deploymentPlan}</textarea></td>
+        <td><textarea rows="40" cols="120" id="<portlet:namespace/>deploymentPlan"
readonly>${deploymentPlan}</textarea></td>
       </tr>
     <!-- SUBMIT BUTTON -->
       <tr>



Mime
View raw message