[Ds-java-dev] svn commit r14452 - in trunk/solutions/data-services/java/modules/www: . resources resources/ui resources/ui/jsp src/org/wso2/solutions/ds test/org/wso2/solutions/ds

svn at wso2.org svn at wso2.org
Mon Mar 3 04:11:24 PST 2008


Author: sumedha
Date: Mon Mar  3 04:11:12 2008
New Revision: 14452

Log:

First UI for Data Service wizard

Added:
   trunk/solutions/data-services/java/modules/www/resources/ui/
   trunk/solutions/data-services/java/modules/www/resources/ui/jsp/
   trunk/solutions/data-services/java/modules/www/resources/ui/jsp/wizardStep1.jsp
   trunk/solutions/data-services/java/modules/www/test/org/wso2/solutions/ds/WizardStep1ActionTest.java
Modified:
   trunk/solutions/data-services/java/modules/www/pom.xml
   trunk/solutions/data-services/java/modules/www/resources/component.xml
   trunk/solutions/data-services/java/modules/www/src/org/wso2/solutions/ds/WizardStep1Action.java

Modified: trunk/solutions/data-services/java/modules/www/pom.xml
==============================================================================
--- trunk/solutions/data-services/java/modules/www/pom.xml	(original)
+++ trunk/solutions/data-services/java/modules/www/pom.xml	Mon Mar  3 04:11:12 2008
@@ -23,7 +23,7 @@
             <artifactId>wso2carbon-core</artifactId>
             <version>SNAPSHOT</version>
         </dependency>
-
+        
         <dependency>
             <groupId>junit</groupId>
             <artifactId>junit</artifactId>
@@ -100,7 +100,7 @@
                         <!--<Bundle-Activator>
                             org.wso2.carbon.osgi.system.Activator
                         </Bundle-Activator>-->
-                        <Export-Package>${pom.artifactId}.*</Export-Package>
+                        <Export-Package>org.wso2.solutions.ds.*</Export-Package>
                     </instructions>
                 </configuration>
             </plugin>

Modified: trunk/solutions/data-services/java/modules/www/resources/component.xml
==============================================================================
--- trunk/solutions/data-services/java/modules/www/resources/component.xml	(original)
+++ trunk/solutions/data-services/java/modules/www/resources/component.xml	Mon Mar  3 04:11:12 2008
@@ -1,3 +1,27 @@
 <component xmlns="http://products.wso2.org/carbon">
-    <!-- fill the content for components -->
+    <!-- Taglibs-->
+    <!--
+    <taglibs>
+        <taglib url="{url}" prefix="{prefix}"/>
+    </taglibs>
+    -->
+
+    <!-- 
+    <js-files>
+        <js-file>/js/sample1.js</js-file>
+    </js-files>
+    -->
+    <menus>
+        <menu action-ref="DataService" name="DataService" level="8"/>
+    </menus>
+
+    <!-- action items -->
+    <actions>
+        <!-- 
+        <action name="page1" view="/jsp/page1.jsp"/>      
+        <action name="page2" class="org.wso2.solutions.ds.Step1"/>
+        -->
+        <action name="DataService" method="load" class="org.wso2.solutions.ds.WizardStep1Action"/>
+    </actions>
+
 </component>

Added: trunk/solutions/data-services/java/modules/www/resources/ui/jsp/wizardStep1.jsp
==============================================================================
--- (empty file)
+++ trunk/solutions/data-services/java/modules/www/resources/ui/jsp/wizardStep1.jsp	Mon Mar  3 04:11:12 2008
@@ -0,0 +1,13 @@
+<div>
+<form method="post" action="/carbon/step1">
+<table width="60%" border="0" cellspacing="0" cellpadding="5">
+	<tr>
+		<td align="right" width="20%">Name:</td>
+		<td width="20%">
+		  <input type="text" name="name" />
+		</td>
+	</tr>
+</table>
+<br />
+<input type="submit" align="middle" value="Submit" />
+</div>
\ No newline at end of file

Modified: trunk/solutions/data-services/java/modules/www/src/org/wso2/solutions/ds/WizardStep1Action.java
==============================================================================
--- trunk/solutions/data-services/java/modules/www/src/org/wso2/solutions/ds/WizardStep1Action.java	(original)
+++ trunk/solutions/data-services/java/modules/www/src/org/wso2/solutions/ds/WizardStep1Action.java	Mon Mar  3 04:11:12 2008
@@ -17,6 +17,14 @@
 /**
  *
  */
+package org.wso2.solutions.ds;
+
+import static org.wso2.carbon.action.ActionHelper.render;
+import org.wso2.carbon.action.ServiceAction;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
 public class WizardStep1Action implements ServiceAction{
 
     private String root;

Added: trunk/solutions/data-services/java/modules/www/test/org/wso2/solutions/ds/WizardStep1ActionTest.java
==============================================================================
--- (empty file)
+++ trunk/solutions/data-services/java/modules/www/test/org/wso2/solutions/ds/WizardStep1ActionTest.java	Mon Mar  3 04:11:12 2008
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import junit.framework.TestCase;
+
+/**
+ *
+ */
+public class WizardStep1ActionTest extends TestCase {
+    public void testFoo() throws Exception {
+        // Write your test case
+    }
+}



More information about the Ds-java-dev mailing list