[wsas-java-dev] svn commit r2529 - in trunk/wsas/java/modules/www/extensions/core: js xslt

svn at wso2.org svn at wso2.org
Sun May 13 19:52:04 PDT 2007


Author: chamil
Date: Sun May 13 19:51:58 2007
New Revision: 2529

Modified:
   trunk/wsas/java/modules/www/extensions/core/js/data_service.js
   trunk/wsas/java/modules/www/extensions/core/xslt/data_service.xsl
   trunk/wsas/java/modules/www/extensions/core/xslt/data_service_add_operation.xsl
Log:
Adding the add operation code.

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 May 13 19:51:58 2007
@@ -121,9 +121,10 @@
 	
 	dataServiceObj.getElementsByTagName("data").item(0).appendChild(opObj);
 
-	var opDivObj = document.getElementById("divDataServiceDetails");
+/*	var opDivObj = document.getElementById("divDataServiceDetails");
     processXML(dataServiceObj, "data_service.xsl", opDivObj);
-    showOnlyOneMain(opDivObj);
+    showOnlyOneMain(opDivObj);*/
+    refreshDataServiceScreen();
 }
 
 function addNewOutputMapping(){

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 May 13 19:51:58 2007
@@ -24,10 +24,13 @@
                        	</input>
 					</div>
                 	</xsl:for-each>
-                	<div class="buttonrow">
-                			<label></label><input type="button" value="Add New">
+                	<div>
+                			<label><a alt="Add New">
+                				<xsl:attribute name="title">Add new Configuration Prameter></xsl:attribute>
+                				<xsl:attribute name="href">#</xsl:attribute>
                 				<xsl:attribute name="onclick">javascript:addConfigParameter();return false;</xsl:attribute>
-                			</input>
+                				<xsl:text>Add New</xsl:text>
+                			</a></label>
                 	</div>
                             	</fieldset>
               </form>        
@@ -58,10 +61,13 @@
 					</label>
 					</div>
                 	</xsl:for-each>
-            	    <div class="buttonrow">
-                			<label></label><input type="button" value="Add New">
-                				<xsl:attribute name="onclick">javascript:alert("Add new configuration peoperty");return false;</xsl:attribute>
-                			</input>
+            	    <div>
+                			<label><a alt="Add New">
+                				<xsl:attribute name="title">Add new Operation></xsl:attribute>
+                				<xsl:attribute name="href">#</xsl:attribute>
+                				<xsl:attribute name="onclick">javascript:displayAddDataServiceOperation();return false;</xsl:attribute>
+                				<xsl:text>Add New</xsl:text>
+                			</a></label>
                 	</div>
                 	</fieldset>
               </form>     
@@ -93,11 +99,14 @@
 						</label>
 						</div>
                 	</xsl:for-each>
-                	<div class="buttonrow">
-	                		<input type="button" value="Add New">
-	                			<xsl:attribute name="onclick">javascript:viewDataServiceQuery();return false;</xsl:attribute>
-	                		</input>
-					</div>
+            	    <div>
+                			<label><a alt="Add New">
+                				<xsl:attribute name="title">Add new Operation></xsl:attribute>
+                				<xsl:attribute name="href">#</xsl:attribute>
+                				<xsl:attribute name="onclick">javascript:viewDataServiceQuery();return false;</xsl:attribute>
+                				<xsl:text>Add New</xsl:text>
+                			</a></label>
+                	</div>
 				</fieldset>
 			</form>
            </xsl:for-each>

Modified: trunk/wsas/java/modules/www/extensions/core/xslt/data_service_add_operation.xsl
==============================================================================
--- trunk/wsas/java/modules/www/extensions/core/xslt/data_service_add_operation.xsl	(original)
+++ trunk/wsas/java/modules/www/extensions/core/xslt/data_service_add_operation.xsl	Sun May 13 19:51:58 2007
@@ -3,9 +3,9 @@
 
     <xsl:template match="*">
         <h4><div id="dataServiceAddOperationHeader"></div></h4>
-        <fieldset style="border:none;">
+         <fieldset style="border:none;">
      	<div id="formset">
-           <xsl:for-each select="return/data">
+           <xsl:for-each select="data">
             <form>
                 <fieldset>
                     <legend>Data Service Management - Add Operation</legend>
@@ -17,18 +17,20 @@
                        	</input>
                     </div>
                     <div>
+                    	<label  style="width: 30%;">Query</label>
                     	<select>
-					<xsl:for-each select="query">
+                    	<xsl:attribute name="id">cmbDataServiceQueryId</xsl:attribute>
+					 <xsl:for-each select="query">
                        	<option>
 	                       	<xsl:attribute name="value"><xsl:value-of select="@id"/></xsl:attribute>
-	                       	<xsl:text><xsl:value-of select="@id"/></xsl:text>
-	                       	<xsl:attribute name="id">cmbDataServiceQueryId</xsl:attribute>
+	                       	<xsl:value-of select="@id"/>   	
                         </option>
                 	</xsl:for-each>
                 		</select>
                 	</div>
                 	<div class="buttonrow">
-                			<label></label><input type="button" value="Done">
+                			<label></label><input type="button">
+                				<xsl:attribute name="value">Done</xsl:attribute>
                 				<xsl:attribute name="onclick">javascript:addDataServiceOperation();;return false;</xsl:attribute>
                 			</input>
                 	</div>




More information about the Wsas-java-dev mailing list