r2 - / refComp refComp/client refComp/client/src refComp/client/src/main refComp/client/src/main/java refComp/client/src/main/java/fr refComp/client/src/main/java/fr/inra refComp/client/src/main/java/fr/inra/refcomp refComp/client/src/main/java/fr/inra/refcomp/client refComp/client/src/main/resources refComp/client/src/main/resources/fr refComp/client/src/main/resources/fr/inra refComp/client/src/main/resources/fr/inra/refcomp refComp/client/src/main/resources/fr/inra/refcomp/public refCom
Author: jcouteau Date: 2010-11-03 14:30:47 +0100 (Wed, 03 Nov 2010) New Revision: 2 Url: http://chorem.org/repositories/revision/incubator/2 Log: First try at refComp Added: refComp/ refComp/LICENSE.txt refComp/README.txt refComp/changelog.txt refComp/client/ refComp/client/LICENSE.txt refComp/client/README.txt refComp/client/changelog.txt refComp/client/pom.xml refComp/client/src/ refComp/client/src/main/ refComp/client/src/main/java/ refComp/client/src/main/java/fr/ refComp/client/src/main/java/fr/inra/ refComp/client/src/main/java/fr/inra/refcomp/ refComp/client/src/main/java/fr/inra/refcomp/Login.gwt.xml refComp/client/src/main/java/fr/inra/refcomp/Search.gwt.xml refComp/client/src/main/java/fr/inra/refcomp/client/ refComp/client/src/main/java/fr/inra/refcomp/client/Login.java refComp/client/src/main/java/fr/inra/refcomp/client/Search.java refComp/client/src/main/resources/ refComp/client/src/main/resources/fr/ refComp/client/src/main/resources/fr/inra/ refComp/client/src/main/resources/fr/inra/refcomp/ refComp/client/src/main/resources/fr/inra/refcomp/public/ refComp/client/src/main/resources/fr/inra/refcomp/public/Application.css refComp/client/src/main/resources/fr/inra/refcomp/public/Login.html refComp/client/src/main/resources/fr/inra/refcomp/public/Search.html refComp/client/src/main/webapp/ refComp/client/src/main/webapp/WEB-INF/ refComp/client/src/main/webapp/WEB-INF/web.xml refComp/client/src/main/webapp/index.html refComp/client/src/test/ refComp/client/src/test/java/ refComp/client/src/test/java/fr/ refComp/client/src/test/java/fr/inra/ refComp/client/src/test/java/fr/inra/refcomp/ refComp/client/src/test/java/fr/inra/refcomp/client/ refComp/client/src/test/java/fr/inra/refcomp/client/GwtTestSample.java refComp/pom.xml refComp/services/ refComp/services/LICENSE.txt refComp/services/README.txt refComp/services/changelog.txt refComp/services/pom.xml refComp/services/src/ refComp/services/src/main/ refComp/services/src/main/java/ refComp/services/src/main/java/fr/ refComp/services/src/main/java/fr/inra/ refComp/services/src/main/java/fr/inra/Services.gwt.xml refComp/services/src/main/java/fr/inra/services/ refComp/services/src/main/resources/ refComp/services/src/main/resources/fr/ refComp/services/src/main/resources/fr/inra/ refComp/services/src/main/resources/fr/inra/refcomp/ refComp/services/src/main/resources/fr/inra/refcomp/public/ refComp/services/src/main/resources/fr/inra/refcomp/public/Application.css refComp/services/src/main/resources/fr/inra/refcomp/public/Application.html refComp/services/src/main/webapp/ refComp/services/src/main/webapp/WEB-INF/ refComp/services/src/main/webapp/WEB-INF/web.xml refComp/services/src/main/webapp/index.html refComp/services/src/test/ refComp/services/src/test/java/ refComp/services/src/test/java/fr/ refComp/services/src/test/java/fr/inra/ refComp/services/src/test/java/fr/inra/refcomp/ refComp/services/src/test/java/fr/inra/refcomp/client/ refComp/services/src/test/java/fr/inra/refcomp/client/GwtTestSample.java Property changes on: refComp ___________________________________________________________________ Added: svn:ignore + *.iws *.iml *.ipr war Property changes on: refComp/client ___________________________________________________________________ Added: svn:ignore + *.iws *.ipr *.iml *.launch target war Added: refComp/client/pom.xml =================================================================== --- refComp/client/pom.xml (rev 0) +++ refComp/client/pom.xml 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + + <parent> + <groupId>fr.inra</groupId> + <artifactId>refcomp</artifactId> + <version>0.1-SNAPSHOT</version> + </parent> + + <groupId>fr.inra.refcomp</groupId> + <artifactId>client</artifactId> + + <dependencies> + + <!-- GWT --> + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-user</artifactId> + </dependency> + + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-servlet</artifactId> + </dependency> + + </dependencies> + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + + <name>${project.artifactId}</name> + <description>RefComp Client interfaces module</description> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <packaging>war</packaging> + + <build> + + <outputDirectory>war/WEB-INF/classes</outputDirectory> + + <plugins> + + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>gwt-maven-plugin</artifactId> + </plugin> + + <plugin> + <artifactId>maven-clean-plugin</artifactId> + </plugin> + + </plugins> + </build> + +</project> \ No newline at end of file Added: refComp/client/src/main/java/fr/inra/refcomp/Login.gwt.xml =================================================================== --- refComp/client/src/main/java/fr/inra/refcomp/Login.gwt.xml (rev 0) +++ refComp/client/src/main/java/fr/inra/refcomp/Login.gwt.xml 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,16 @@ +<!DOCTYPE module PUBLIC "//gwt-module/" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/src/gwt-module.dtd"> +<module> + + <!-- Inherit the core Web Toolkit stuff. --> + <inherits name='com.google.gwt.user.User'/> + + <!-- inherit css based theme --> + <inherits name='com.google.gwt.user.theme.standard.Standard'/> + + <!-- Specify the app entry point class. --> + <entry-point class='fr.inra.refcomp.client.Login'/> + + <!-- Specify the application specific style sheet. --> + <stylesheet src='Application.css' /> + +</module> Added: refComp/client/src/main/java/fr/inra/refcomp/Search.gwt.xml =================================================================== --- refComp/client/src/main/java/fr/inra/refcomp/Search.gwt.xml (rev 0) +++ refComp/client/src/main/java/fr/inra/refcomp/Search.gwt.xml 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,17 @@ +<!DOCTYPE module PUBLIC "//gwt-module/" + "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/src/gwt-module.dtd"> +<module> + + <!-- Inherit the core Web Toolkit stuff. --> + <inherits name='com.google.gwt.user.User'/> + + <!-- inherit css based theme --> + <inherits name='com.google.gwt.user.theme.standard.Standard'/> + + <!-- Specify the app entry point class. --> + <entry-point class='fr.inra.refcomp.client.Search'/> + + <!-- Specify the application specific style sheet. --> + <stylesheet src='Application.css'/> + +</module> \ No newline at end of file Added: refComp/client/src/main/java/fr/inra/refcomp/client/Login.java =================================================================== --- refComp/client/src/main/java/fr/inra/refcomp/client/Login.java (rev 0) +++ refComp/client/src/main/java/fr/inra/refcomp/client/Login.java 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,41 @@ +package fr.inra.refcomp.client; + +import com.google.gwt.core.client.EntryPoint; +import com.google.gwt.event.dom.client.ClickEvent; +import com.google.gwt.event.dom.client.ClickHandler; +import com.google.gwt.user.client.Window; +import com.google.gwt.user.client.ui.Button; +import com.google.gwt.user.client.ui.Label; +import com.google.gwt.user.client.ui.RootPanel; +import com.google.gwt.user.client.ui.TextBox; + +/** + * User: couteau + * Date: 3 nov. 2010 + */ +public class Login implements EntryPoint { + + Label loginLabel = new Label("Login : "); + TextBox loginBox = new TextBox(); + Label pwdLabel = new Label("Password : "); + TextBox pwdBox = new TextBox(); + Button button = new Button("Submit"); + + public void onModuleLoad() { + RootPanel.get("loginLabel").add(loginLabel); + RootPanel.get("loginBox").add(loginBox); + RootPanel.get("pwdLabel").add(pwdLabel); + RootPanel.get("pwdBox").add(pwdBox); + RootPanel.get("submitButton").add(button); + + button.addClickHandler(new ClickHandler(){ + public void onClick(ClickEvent event) { + //Window.Location.assign("Search/Search.html"); + Window.Location.replace("../fr.inra.refcomp.Search/Search.html"); + //Window.open("Search.html", "_self", ""); + } + }); + + } + +} Added: refComp/client/src/main/java/fr/inra/refcomp/client/Search.java =================================================================== --- refComp/client/src/main/java/fr/inra/refcomp/client/Search.java (rev 0) +++ refComp/client/src/main/java/fr/inra/refcomp/client/Search.java 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,22 @@ +package fr.inra.refcomp.client; + +import com.google.gwt.core.client.EntryPoint; +import com.google.gwt.core.client.GWT; +import com.google.gwt.user.client.ui.Label; +import com.google.gwt.user.client.ui.RootPanel; + +/** + * User: couteau + * Date: 3 nov. 2010 + */ +public class Search implements EntryPoint { + + Label searchLabel = new Label("Search"); + + public void onModuleLoad(){ + GWT.log("Hello World!", null); + + RootPanel.get("test").add(searchLabel); + + } +} Added: refComp/client/src/main/resources/fr/inra/refcomp/public/Application.css =================================================================== --- refComp/client/src/main/resources/fr/inra/refcomp/public/Application.css (rev 0) +++ refComp/client/src/main/resources/fr/inra/refcomp/public/Application.css 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,14 @@ +/** Add css rules here for your application. */ + +button { + display: block; + font-size: 16pt +} + +.widePanel { + width: 100% +} + +img { + margin-top: 20px; +} \ No newline at end of file Added: refComp/client/src/main/resources/fr/inra/refcomp/public/Login.html =================================================================== --- refComp/client/src/main/resources/fr/inra/refcomp/public/Login.html (rev 0) +++ refComp/client/src/main/resources/fr/inra/refcomp/public/Login.html 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,43 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<!-- The HTML 4.01 Transitional DOCTYPE declaration--> +<!-- above set at the top of the file will set --> +<!-- the browser's rendering engine into --> +<!-- "Quirks Mode". Replacing this declaration --> +<!-- with a "Standards Mode" doctype is supported, --> +<!-- but may lead to some differences in layout. --> + +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + + <title>RefComp - Login</title> + + <meta name='gwt:module' content='fr.inra.refcomp.client.Login'> + + <!-- --> + <!-- This script loads your compiled module. --> + <!-- If you add any GWT meta tags, they must --> + <!-- be added before this line. --> + <!-- --> + <script type="text/javascript" language="javascript" src="fr.inra.refcomp.Login.nocache.js"></script> + </head> + + <body> + + <div id="login"> + <div id="loginForm"> + <span id="loginLabel"></span> + <span id="loginBox"></span> + <span id="pwdLabel"></span> + <span id="pwdBox"></span> + <div id="submitButton"></div> + </div> + <div id="register"></div> + <div id="forgot"></div> + </div> + + <!-- OPTIONAL: include this if you want history support --> + <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> + + </body> +</html> \ No newline at end of file Added: refComp/client/src/main/resources/fr/inra/refcomp/public/Search.html =================================================================== --- refComp/client/src/main/resources/fr/inra/refcomp/public/Search.html (rev 0) +++ refComp/client/src/main/resources/fr/inra/refcomp/public/Search.html 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,27 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + + <title>RefComp - Search</title> + + <meta name='gwt:module' content='fr.inra.refcomp.client.Search'> + + <!-- --> + <!-- This script loads your compiled module. --> + <!-- If you add any GWT meta tags, they must --> + <!-- be added before this line. --> + <!-- --> + <script type="text/javascript" language="javascript" src="fr.inra.refcomp.Search.nocache.js"></script> +</head> +<body> +<div id="test"> + +</div> + + + <!-- OPTIONAL: include this if you want history support --> + <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> +</body> +</html> \ No newline at end of file Added: refComp/client/src/main/webapp/WEB-INF/web.xml =================================================================== --- refComp/client/src/main/webapp/WEB-INF/web.xml (rev 0) +++ refComp/client/src/main/webapp/WEB-INF/web.xml 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,11 @@ +<!DOCTYPE web-app PUBLIC + "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.dtd" > + +<web-app> + <display-name>GWT-Maven-Archetype</display-name> + + <welcome-file-list> + <welcome-file>index.html</welcome-file> + </welcome-file-list> +</web-app> Added: refComp/client/src/main/webapp/index.html =================================================================== --- refComp/client/src/main/webapp/index.html (rev 0) +++ refComp/client/src/main/webapp/index.html 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,8 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> +<!-- forward to the GWT Example Application --> +<meta http-equiv="REFRESH" + content="0;url=fr.inra.refcomp.Login/Login.html"> +</HEAD> +</HTML> \ No newline at end of file Added: refComp/client/src/test/java/fr/inra/refcomp/client/GwtTestSample.java =================================================================== --- refComp/client/src/test/java/fr/inra/refcomp/client/GwtTestSample.java (rev 0) +++ refComp/client/src/test/java/fr/inra/refcomp/client/GwtTestSample.java 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,20 @@ +package fr.inra.refcomp.client; + +import com.google.gwt.junit.client.GWTTestCase; + +public class GwtTestSample + extends GWTTestCase +{ + + public String getModuleName() + { + return "fr.inra.Application"; + } + + public void testSomething() + { + // Not much to actually test in this sample app + // Ideally you would test your Controller here (NOT YOUR UI) + // (Make calls to RPC services, test client side model objects, test client side logic, etc) + } +} \ No newline at end of file Added: refComp/pom.xml =================================================================== --- refComp/pom.xml (rev 0) +++ refComp/pom.xml 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,134 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <!-- + POM generated by gwt-maven-plugin archetype + --> + <modelVersion>4.0.0</modelVersion> + + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + + <parent> + <groupId>org.nuiton</groupId> + <artifactId>mavenpom4labs</artifactId> + <version>2.4</version> + </parent> + + <groupId>fr.inra</groupId> + <artifactId>refcomp</artifactId> + <version>0.1-SNAPSHOT</version> + + <modules> + <module>client</module> + <module>services</module> + </modules> + + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + + <name>RefComp</name> + + <description> + Software to create a knowledge database about people competences. + </description> + <inceptionYear>2010</inceptionYear> + + <organization> + <name>Code Lutin</name> + </organization> + + <developers> + <developer> + <id>jcouteau</id> + <name>Jean Couteau</name> + <email>couteau@codelutin.com</email> + <organization>CodeLutin</organization> + <roles> + <role>Developer</role> + </roles> + <timezone>+2</timezone> + </developer> + </developers> + + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + <packaging>pom</packaging> + + <properties> + + <projectId>Episodes Manager</projectId> + + <labs.id>---</labs.id> + + <!-- libraries version --> + <gwtVersion>2.0.3</gwtVersion> + </properties> + + <dependencyManagement> + <dependencies> + + <!-- GWT dependencies (from central repo) --> + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-servlet</artifactId> + <version>${gwtVersion}</version> + <scope>runtime</scope> + </dependency> + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-user</artifactId> + <version>${gwtVersion}</version> + <scope>provided</scope> + </dependency> + </dependencies> + + </dependencyManagement> + + <build> + + <pluginManagement> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>gwt-maven-plugin</artifactId> + <version>1.2</version> + <executions> + <execution> + <goals> + <goal>compile</goal> + <!--goal>test</goal--> + </goals> + </execution> + </executions> + <configuration> + <runTarget>fr.inra.refcomp.Login/Login.html</runTarget> + <noServer>false</noServer> + <gwtVersion>${gwtVersion}</gwtVersion> + </configuration> + </plugin> + + <plugin> + <artifactId>maven-clean-plugin</artifactId> + <version>2.4.1</version> + <configuration> + <filesets> + <fileset> + <directory>war</directory> + </fileset> + </filesets> + </configuration> + </plugin> + + + </plugins> + </pluginManagement> + + </build> + +</project> Property changes on: refComp/services ___________________________________________________________________ Added: svn:ignore + *.iml *.ipr *.iws Added: refComp/services/pom.xml =================================================================== --- refComp/services/pom.xml (rev 0) +++ refComp/services/pom.xml 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + + <!-- ************************************************************* --> + <!-- *** POM Relationships *************************************** --> + <!-- ************************************************************* --> + + <parent> + <groupId>fr.inra</groupId> + <artifactId>refcomp</artifactId> + <version>0.1-SNAPSHOT</version> + </parent> + + <groupId>fr.inra.refcomp</groupId> + <artifactId>services</artifactId> + + <dependencies> + + <!-- GWT --> + <dependency> + <groupId>com.google.gwt</groupId> + <artifactId>gwt-user</artifactId> + </dependency> + + </dependencies> + + <!-- ************************************************************* --> + <!-- *** Project Information ************************************* --> + <!-- ************************************************************* --> + + <name>${project.artifactId}</name> + <description>RefComp Client services module</description> + + <!-- ************************************************************* --> + <!-- *** Build Settings ****************************************** --> + <!-- ************************************************************* --> + + <packaging>jar</packaging> + + <build> + + <plugins> + + <!-- Use gwt-maven-plugin resources goal to bundle sources for client + module --> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>gwt-maven-plugin</artifactId> + <executions> + <execution> + <goals> + <goal>resources</goal> + </goals> + </execution> + </executions> + </plugin> + + </plugins> + </build> + +</project> \ No newline at end of file Added: refComp/services/src/main/java/fr/inra/Services.gwt.xml =================================================================== --- refComp/services/src/main/java/fr/inra/Services.gwt.xml (rev 0) +++ refComp/services/src/main/java/fr/inra/Services.gwt.xml 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,7 @@ +<!DOCTYPE module PUBLIC "//gwt-module/" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/src/gwt-module.dtd"> +<module> + + <!-- Inherit the core Web Toolkit stuff. --> + <inherits name='com.google.gwt.user.User'/> + +</module> Added: refComp/services/src/main/resources/fr/inra/refcomp/public/Application.css =================================================================== --- refComp/services/src/main/resources/fr/inra/refcomp/public/Application.css (rev 0) +++ refComp/services/src/main/resources/fr/inra/refcomp/public/Application.css 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,14 @@ +/** Add css rules here for your application. */ + +button { + display: block; + font-size: 16pt +} + +.widePanel { + width: 100% +} + +img { + margin-top: 20px; +} \ No newline at end of file Added: refComp/services/src/main/resources/fr/inra/refcomp/public/Application.html =================================================================== --- refComp/services/src/main/resources/fr/inra/refcomp/public/Application.html (rev 0) +++ refComp/services/src/main/resources/fr/inra/refcomp/public/Application.html 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,36 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<!-- The HTML 4.01 Transitional DOCTYPE declaration--> +<!-- above set at the top of the file will set --> +<!-- the browser's rendering engine into --> +<!-- "Quirks Mode". Replacing this declaration --> +<!-- with a "Standards Mode" doctype is supported, --> +<!-- but may lead to some differences in layout. --> + +<html> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8"> + <!-- --> + <!-- Any title is fine --> + <!-- --> + <title>Application</title> + + <!-- --> + <!-- This script loads your compiled module. --> + <!-- If you add any GWT meta tags, they must --> + <!-- be added before this line. --> + <!-- --> + <script type="text/javascript" language="javascript" src="fr.inra.Application.nocache.js"></script> + </head> + + <!-- --> + <!-- The body can have arbitrary html, or --> + <!-- you can leave the body empty if you want --> + <!-- to create a completely dynamic UI. --> + <!-- --> + <body> + + <!-- OPTIONAL: include this if you want history support --> + <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> + + </body> +</html> Added: refComp/services/src/main/webapp/WEB-INF/web.xml =================================================================== --- refComp/services/src/main/webapp/WEB-INF/web.xml (rev 0) +++ refComp/services/src/main/webapp/WEB-INF/web.xml 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,11 @@ +<!DOCTYPE web-app PUBLIC + "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" + "http://java.sun.com/dtd/web-app_2_3.dtd" > + +<web-app> + <display-name>GWT-Maven-Archetype</display-name> + + <welcome-file-list> + <welcome-file>index.html</welcome-file> + </welcome-file-list> +</web-app> Added: refComp/services/src/main/webapp/index.html =================================================================== --- refComp/services/src/main/webapp/index.html (rev 0) +++ refComp/services/src/main/webapp/index.html 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,8 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<html> +<head> +<!-- forward to the Login page --> +<meta http-equiv="REFRESH" + content="0;url=fr.inra.Application/Application.html"> +</HEAD> +</HTML> \ No newline at end of file Added: refComp/services/src/test/java/fr/inra/refcomp/client/GwtTestSample.java =================================================================== --- refComp/services/src/test/java/fr/inra/refcomp/client/GwtTestSample.java (rev 0) +++ refComp/services/src/test/java/fr/inra/refcomp/client/GwtTestSample.java 2010-11-03 13:30:47 UTC (rev 2) @@ -0,0 +1,23 @@ +package fr.inra.refcomp.client; + +import junit.framework.Assert; + +import com.google.gwt.junit.client.GWTTestCase; + +public class GwtTestSample + extends GWTTestCase +{ + + public String getModuleName() + { + return "fr.inra.Application"; + } + + public void testSomething() + { + // Not much to actually test in this sample app + // Ideally you would test your Controller here (NOT YOUR UI) + // (Make calls to RPC services, test client side model objects, test client side logic, etc) + Assert.assertTrue( true ); + } +} \ No newline at end of file
participants (1)
-
jcouteau@users.chorem.org