Author: saminda
Date: Sun Jan 6 10:24:33 2008
New Revision: 11889
Log:
Fixed JIRA-645
Modified:
trunk/wsas/java/modules/www/extensions/core/js/data_service.js
trunk/wsas/java/modules/www/extensions/core/xslt/data_service.xsl
Modified: trunk/wsas/java/modules/www/extensions/core/js/data_service.js
==============================================================================
--- trunk/wsas/java/modules/www/extensions/core/js/data_service.js
(original)
+++ trunk/wsas/java/modules/www/extensions/core/js/data_service.js Sun Jan
6 10:24:33 2008
@@ -1804,6 +1804,14 @@
// TODO This is the first "Next >"
function stepOneToStepTwo() {
+ var dst = dataServiceObj.getAttribute("dataSourceType");
+ var dsn = dataServiceObj.getAttribute("disable_name");
+ if (!(dsn =='true')) {
+ if (newDataService && !dst) {
+ wso2.wsf.Util.alertWarning("Data Source must be provided in order
to proceed");
+ return;
+ }
+ }
//This will first validate the inputs before stepping to the next section
of the wizard
if (!ds_collectdata["ds_step" + dataServiceObj.getAttribute("ds_step")]())
{
return;
Modified: trunk/wsas/java/modules/www/extensions/core/xslt/data_service.xsl
==============================================================================
--- trunk/wsas/java/modules/www/extensions/core/xslt/data_service.xsl
(original)
+++ trunk/wsas/java/modules/www/extensions/core/xslt/data_service.xsl Sun Jan
6 10:24:33 2008
@@ -112,7 +112,7 @@
<label>Data Source<font color='red'>*</font>
</label>
<select id="databaseSourceType">
- <xsl:attribute
name="onchange">javascript:setConfigurationScreen(this.value);return
false;</xsl:attribute>
+ <xsl:attribute
name="onchange">javascript:setConfigurationScreen(this[this.selectedIndex].value);return
false;</xsl:attribute>
<xsl:if test="$disableName">
<xsl:attribute name="disabled">true</xsl:attribute>
</xsl:if>
_______________________________________________
Wsas-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/wsas-java-dev