You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by xu...@apache.org on 2009/09/23 15:50:33 UTC
svn commit: r818105 - in
/geronimo/server/branches/2.2/plugins/activemq/activemq-portlets/src/main/webapp/WEB-INF/view/jmswizard:
destination.jsp plan.jsp
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>