Sandbox-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- 1825 discussions
04 Nov '10
Author: jcouteau
Date: 2010-11-04 10:40:42 +0100 (Thu, 04 Nov 2010)
New Revision: 8
Url: http://chorem.org/repositories/revision/incubator/8
Log:
Put a passwordBox to enter password
Modified:
refComp/client/src/main/java/fr/inra/refcomp/client/Login.java
refComp/client/src/main/java/fr/inra/refcomp/client/Login.ui.xml
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/Login.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/Login.java 2010-11-04 08:37:47 UTC (rev 7)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/Login.java 2010-11-04 09:40:42 UTC (rev 8)
@@ -13,6 +13,7 @@
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
+import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import fr.inra.refcomp.client.constants.Header;
@@ -56,7 +57,7 @@
TextBox loginBox;
@UiField
- TextBox passwordBox;
+ PasswordTextBox passwordBox;
@UiField
Label completionLabel1;
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/Login.ui.xml
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/Login.ui.xml 2010-11-04 08:37:47 UTC (rev 7)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/Login.ui.xml 2010-11-04 09:40:42 UTC (rev 8)
@@ -10,7 +10,7 @@
<gwt:TextBox ui:field="loginBox"
styleName="{res.style.box}"/>
<gwt:Label text="Password" styleName="{res.style.greyText}"/>
- <gwt:TextBox ui:field="passwordBox" styleName="{res.style.box}"/>
+ <gwt:PasswordTextBox ui:field="passwordBox" styleName="{res.style.box}"/>
<gwt:HorizontalPanel verticalAlignment="ALIGN_MIDDLE">
<gwt:Button ui:field="buttonSubmit" text="Submit"
styleName="{res.style.loginButton}"/>
1
0
r7 - in refComp/client: . src/main/java/fr/inra/refcomp/service src/main/webapp src/main/webapp/WEB-INF
by jcouteau@users.chorem.org 04 Nov '10
by jcouteau@users.chorem.org 04 Nov '10
04 Nov '10
Author: jcouteau
Date: 2010-11-04 09:37:47 +0100 (Thu, 04 Nov 2010)
New Revision: 7
Url: http://chorem.org/repositories/revision/incubator/7
Log:
Change conf
Modified:
refComp/client/pom.xml
refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceAsync.java
refComp/client/src/main/webapp/
refComp/client/src/main/webapp/WEB-INF/
refComp/client/src/main/webapp/WEB-INF/web.xml
Modified: refComp/client/pom.xml
===================================================================
--- refComp/client/pom.xml 2010-11-04 08:31:02 UTC (rev 6)
+++ refComp/client/pom.xml 2010-11-04 08:37:47 UTC (rev 7)
@@ -60,7 +60,7 @@
<build>
- <outputDirectory>war/WEB-INF/classes</outputDirectory>
+ <outputDirectory>src/main/webapp/WEB-INF/classes</outputDirectory>
<plugins>
Modified: refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceAsync.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceAsync.java 2010-11-04 08:31:02 UTC (rev 6)
+++ refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceAsync.java 2010-11-04 08:37:47 UTC (rev 7)
@@ -1,6 +1,7 @@
package fr.inra.refcomp.service;
import com.google.gwt.user.client.rpc.AsyncCallback;
+import java.util.List;
/**
* User: couteau
@@ -8,7 +9,7 @@
*/
public interface SkillServiceAsync {
- void getAllSkills(AsyncCallback callback);
+ void getAllSkills(AsyncCallback<List<Skill>> callback);
- void addSkill(AsyncCallback callback);
+ void addSkill(Skill skill, AsyncCallback callback);
}
Property changes on: refComp/client/src/main/webapp
___________________________________________________________________
Added: svn:ignore
+ fr.inra.*
Property changes on: refComp/client/src/main/webapp/WEB-INF
___________________________________________________________________
Added: svn:ignore
+ lib
classes
Modified: refComp/client/src/main/webapp/WEB-INF/web.xml
===================================================================
--- refComp/client/src/main/webapp/WEB-INF/web.xml 2010-11-04 08:31:02 UTC (rev 6)
+++ refComp/client/src/main/webapp/WEB-INF/web.xml 2010-11-04 08:37:47 UTC (rev 7)
@@ -9,7 +9,7 @@
<welcome-file>index.html</welcome-file>
</welcome-file-list>
- <servlet>
+ <!--servlet>
<servlet-name>SkillService</servlet-name>
<servlet-class>fr.inra.refcomp.service.SkillServiceImpl
</servlet-class>
@@ -17,7 +17,7 @@
<servlet-mapping>
<servlet-name>SkillService</servlet-name>
<url-pattern>/fr.inra.refcomp.RefComp/skillService</url-pattern>
- </servlet-mapping>
+ </servlet-mapping-->
<servlet>
<servlet-name>LoginService</servlet-name>
@@ -26,7 +26,7 @@
</servlet>
<servlet-mapping>
<servlet-name>LoginService</servlet-name>
- <url-pattern>/fr.inra.refcomp.RefComp/loginService</url-pattern>
+ <url-pattern>/fr.inra.refcomp.RefComp/login</url-pattern>
</servlet-mapping>
</web-app>
1
0
04 Nov '10
Author: jcouteau
Date: 2010-11-04 09:31:02 +0100 (Thu, 04 Nov 2010)
New Revision: 6
Url: http://chorem.org/repositories/revision/incubator/6
Log:
Add Search screen (no functionnality)
Added:
refComp/client/src/main/java/fr/inra/refcomp/client/Search.ui.xml
Modified:
refComp/client/src/main/java/fr/inra/refcomp/client/Login.java
refComp/client/src/main/java/fr/inra/refcomp/client/Search.java
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/Login.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/Login.java 2010-11-04 08:22:03 UTC (rev 5)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/Login.java 2010-11-04 08:31:02 UTC (rev 6)
@@ -88,8 +88,9 @@
RootPanel header = RootPanel.get("header");
content.clear();
+ header.clear();
- header.clear();
+ content.add(new Search());
header.add(new Header());
} else {
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/Search.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/Search.java 2010-11-04 08:22:03 UTC (rev 5)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/Search.java 2010-11-04 08:31:02 UTC (rev 6)
@@ -2,25 +2,49 @@
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
+import com.google.gwt.dom.client.StyleInjector;
+import com.google.gwt.uibinder.client.UiBinder;
+import com.google.gwt.uibinder.client.UiField;
+import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
+import fr.inra.refcomp.client.resources.Style;
import org.gwtmultipage.client.UrlPatternEntryPoint;
/**
* User: couteau
* Date: 3 nov. 2010
*/
-public class Search implements EntryPoint {
+public class Search extends Composite {
- Label searchLabel = new Label("Search");
- TextBox searchBox = new TextBox();
- Button searchButton = new Button("Search");
+ @UiTemplate("Search.ui.xml")
+ interface MyUiBinder extends UiBinder<Panel, Search> {
+ }
- public void onModuleLoad(){
- RootPanel.get("searchLabel").add(searchLabel);
- RootPanel.get("searchBox").add(searchBox);
- RootPanel.get("searchButton").add(searchButton);
+ private static final MyUiBinder binder = GWT.create(MyUiBinder.class);
+
+ @UiField(provided = true)
+ final Style res;
+
+ private static boolean stylesInjected = false;
+
+ public Search() {
+ this.res = GWT.create(Style.class);
+
+ // Inject only once.
+ if (!stylesInjected) {
+ StyleInjector.injectStylesheet(res.style().getText());
+ stylesInjected = true;
+ }
+
+ initWidget(binder.createAndBindUi(this));
}
+
+
+
+
}
Added: refComp/client/src/main/java/fr/inra/refcomp/client/Search.ui.xml
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/Search.ui.xml (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/Search.ui.xml 2010-11-04 08:31:02 UTC (rev 6)
@@ -0,0 +1,19 @@
+<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
+ xmlns:gwt='urn:import:com.google.gwt.user.client.ui'>
+
+ <ui:with field='res' type='fr.inra.refcomp.client.resources.Style'/>
+
+ <gwt:HTMLPanel>
+ <div align="center">
+ <gwt:VerticalPanel styleName="{res.style.background}">
+ <gwt:Label text="RefComp Search" styleName="{res.style.greyText}"/>
+ <gwt:HorizontalPanel verticalAlignment="ALIGN_MIDDLE">
+ <gwt:TextBox ui:field="searchBox"
+ styleName="{res.style.box}"/>
+ <gwt:Button ui:field="buttonSearch" text="Search"
+ styleName="{res.style.loginButton}"/>
+ </gwt:HorizontalPanel>
+ </gwt:VerticalPanel>
+ </div>
+ </gwt:HTMLPanel>
+</ui:UiBinder>
\ No newline at end of file
1
0
r5 - in refComp/client/src/main/java/fr/inra/refcomp/client: . constants
by jcouteau@users.chorem.org 04 Nov '10
by jcouteau@users.chorem.org 04 Nov '10
04 Nov '10
Author: jcouteau
Date: 2010-11-04 09:22:03 +0100 (Thu, 04 Nov 2010)
New Revision: 5
Url: http://chorem.org/repositories/revision/incubator/5
Log:
Add footer
Modified:
refComp/client/src/main/java/fr/inra/refcomp/client/RefComp.java
refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.java
refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.ui.xml
refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.java
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/RefComp.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/RefComp.java 2010-11-04 08:13:00 UTC (rev 4)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/RefComp.java 2010-11-04 08:22:03 UTC (rev 5)
@@ -2,6 +2,7 @@
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
+import fr.inra.refcomp.client.constants.Footer;
/**
* User: couteau
@@ -11,6 +12,7 @@
public void onModuleLoad() {
RootPanel.get("content").add(new Login());
+ RootPanel.get("footer").add(new Footer());
}
}
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.java 2010-11-04 08:13:00 UTC (rev 4)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.java 2010-11-04 08:22:03 UTC (rev 5)
@@ -1,8 +1,39 @@
package fr.inra.refcomp.client.constants;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.dom.client.StyleInjector;
+import com.google.gwt.uibinder.client.UiBinder;
+import com.google.gwt.uibinder.client.UiField;
+import com.google.gwt.uibinder.client.UiTemplate;
+import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.Panel;
+import fr.inra.refcomp.client.resources.Style;
+
/**
* User: couteau
* Date: 3 nov. 2010
*/
-public class Footer {
+public class Footer extends Composite {
+ @UiTemplate("Footer.ui.xml")
+ interface MyUiBinder extends UiBinder<Panel, Footer> {
+ }
+
+ private static final MyUiBinder binder = GWT.create(MyUiBinder.class);
+
+ @UiField(provided = true)
+ final Style res;
+
+ private static boolean stylesInjected = false;
+
+ public Footer() {
+ this.res = GWT.create(Style.class);
+
+ // Inject only once.
+ if (!stylesInjected) {
+ StyleInjector.injectStylesheet(res.style().getText());
+ stylesInjected = true;
+ }
+
+ initWidget(binder.createAndBindUi(this));
+ }
}
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.ui.xml
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.ui.xml 2010-11-04 08:13:00 UTC (rev 4)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.ui.xml 2010-11-04 08:22:03 UTC (rev 5)
@@ -0,0 +1,11 @@
+<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
+ xmlns:gwt='urn:import:com.google.gwt.user.client.ui'>
+
+ <ui:with field='res' type='fr.inra.refcomp.client.resources.Style'/>
+
+ <gwt:HTMLPanel>
+ <gwt:HorizontalPanel verticalAlignment="ALIGN_MIDDLE">
+ <gwt:Label text="Footer" styleName="{res.style.greyText}"/>
+ </gwt:HorizontalPanel>
+ </gwt:HTMLPanel>
+</ui:UiBinder>
\ No newline at end of file
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.java 2010-11-04 08:13:00 UTC (rev 4)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.java 2010-11-04 08:22:03 UTC (rev 5)
@@ -8,8 +8,6 @@
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.rpc.AsyncCallback;
-import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.RootPanel;
1
0
04 Nov '10
Author: jcouteau
Date: 2010-11-04 09:13:00 +0100 (Thu, 04 Nov 2010)
New Revision: 4
Url: http://chorem.org/repositories/revision/incubator/4
Log:
Nice login page + header for next pages
Added:
refComp/client/src/main/java/fr/inra/refcomp/RefComp.gwt.xml
refComp/client/src/main/java/fr/inra/refcomp/client/Login.ui.xml
refComp/client/src/main/java/fr/inra/refcomp/client/RefComp.java
refComp/client/src/main/java/fr/inra/refcomp/client/SearchResults.java
refComp/client/src/main/java/fr/inra/refcomp/client/constants/
refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.java
refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.ui.xml
refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.java
refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.ui.xml
refComp/client/src/main/java/fr/inra/refcomp/client/resources/
refComp/client/src/main/java/fr/inra/refcomp/client/resources/Style.java
refComp/client/src/main/java/fr/inra/refcomp/client/resources/refcomp.css
refComp/client/src/main/java/fr/inra/refcomp/client/services/
refComp/client/src/main/java/fr/inra/refcomp/client/services/LoginService.java
refComp/client/src/main/java/fr/inra/refcomp/client/services/LoginServiceAsync.java
refComp/client/src/main/java/fr/inra/refcomp/service/
refComp/client/src/main/java/fr/inra/refcomp/service/LoginServiceImpl.java
refComp/client/src/main/java/fr/inra/refcomp/service/Skill.java
refComp/client/src/main/java/fr/inra/refcomp/service/SkillService.java
refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceAsync.java
refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceImpl.java
refComp/client/src/main/resources/fr/inra/refcomp/public/RefComp.html
refComp/client/src/main/resources/fr/inra/refcomp/public/SearchResults.html
refComp/client/src/main/resources/fr/inra/refcomp/resources/
refComp/client/src/main/resources/fr/inra/refcomp/resources/refcomp.css
Removed:
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/resources/fr/inra/refcomp/public/Login.html
refComp/client/src/test/java/fr/inra/refcomp/client/GwtTestSample.java
Modified:
refComp/client/pom.xml
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/fr/inra/refcomp/public/Search.html
refComp/client/src/main/webapp/WEB-INF/web.xml
Modified: refComp/client/pom.xml
===================================================================
--- refComp/client/pom.xml 2010-11-03 15:15:50 UTC (rev 3)
+++ refComp/client/pom.xml 2010-11-04 08:13:00 UTC (rev 4)
@@ -31,6 +31,18 @@
<artifactId>gwt-servlet</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.gwtmultipage</groupId>
+ <artifactId>gwtmultipage-core</artifactId>
+ <version>1.0.0.Beta5</version>
+ </dependency>
+
+ <dependency>
+ <groupId>fr.inra.refcomp</groupId>
+ <artifactId>services</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </dependency>
+
</dependencies>
<!-- ************************************************************* -->
Deleted: refComp/client/src/main/java/fr/inra/refcomp/Login.gwt.xml
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/Login.gwt.xml 2010-11-03 15:15:50 UTC (rev 3)
+++ refComp/client/src/main/java/fr/inra/refcomp/Login.gwt.xml 2010-11-04 08:13:00 UTC (rev 4)
@@ -1,16 +0,0 @@
-<!DOCTYPE module PUBLIC "//gwt-module/" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/…">
-<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/RefComp.gwt.xml
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/RefComp.gwt.xml (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/RefComp.gwt.xml 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,18 @@
+<!DOCTYPE module PUBLIC "//gwt-module/"
+ "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/…">
+<module>
+
+ <!-- Inherit the core Web Toolkit stuff. -->
+ <inherits name='com.google.gwt.user.User'/>
+ <inherits name="com.google.gwt.uibinder.UiBinder"/>
+
+ <!-- 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.RefComp'/>
+
+ <!-- Specify the application specific style sheet. -->
+ <stylesheet src='Application.css'/>
+
+</module>
\ No newline at end of file
Deleted: refComp/client/src/main/java/fr/inra/refcomp/Search.gwt.xml
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/Search.gwt.xml 2010-11-03 15:15:50 UTC (rev 3)
+++ refComp/client/src/main/java/fr/inra/refcomp/Search.gwt.xml 2010-11-04 08:13:00 UTC (rev 4)
@@ -1,17 +0,0 @@
-<!DOCTYPE module PUBLIC "//gwt-module/"
- "http://google-web-toolkit.googlecode.com/svn/tags/1.6.2/distro-source/core/…">
-<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
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/Login.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/Login.java 2010-11-03 15:15:50 UTC (rev 3)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/Login.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -1,41 +1,128 @@
package fr.inra.refcomp.client;
-import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.dom.client.StyleInjector;
import com.google.gwt.event.dom.client.ClickEvent;
-import com.google.gwt.event.dom.client.ClickHandler;
+import com.google.gwt.event.logical.shared.ValueChangeEvent;
+import com.google.gwt.uibinder.client.UiBinder;
+import com.google.gwt.uibinder.client.UiField;
+import com.google.gwt.uibinder.client.UiHandler;
+import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.Window;
-import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
+import fr.inra.refcomp.client.constants.Header;
+import fr.inra.refcomp.client.resources.Style;
+import fr.inra.refcomp.client.services.LoginService;
+import fr.inra.refcomp.client.services.LoginServiceAsync;
/**
* User: couteau
* Date: 3 nov. 2010
*/
-public class Login implements EntryPoint {
+public class Login extends Composite {
- 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);
+ private final LoginServiceAsync loginService = GWT
+ .create(LoginService.class);
- 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", "");
- }
- });
+ @UiTemplate("Login.ui.xml")
+ interface MyUiBinder extends UiBinder<Panel, Login> {
+ }
+ private static final MyUiBinder binder = GWT.create(MyUiBinder.class);
+
+ @UiField(provided = true)
+ final Style res;
+
+ private static boolean stylesInjected = false;
+
+ public Login() {
+ this.res = GWT.create(Style.class);
+
+ // Inject only once.
+ if (!stylesInjected) {
+ StyleInjector.injectStylesheet(res.style().getText());
+ stylesInjected = true;
+ }
+
+ initWidget(binder.createAndBindUi(this));
}
+ @UiField
+ TextBox loginBox;
+
+ @UiField
+ TextBox passwordBox;
+
+ @UiField
+ Label completionLabel1;
+
+ @UiField
+ Label completionLabel2;
+
+ private Boolean tooShort = false;
+
+ /*
+ * Method name is not relevant, the binding is done according to the class
+ * of the parameter.
+ */
+
+ @UiHandler("buttonSubmit")
+ void doClickSubmit(ClickEvent event) {
+ if (tooShort) {
+ loginService.login(loginBox.getValue(), passwordBox.getValue(),
+ new AsyncCallback<Boolean>() {
+ @Override
+ public void onFailure(Throwable caught) {
+ Window.alert("Server communication error");
+ }
+
+ @Override
+ public void onSuccess(Boolean result) {
+ if (result){
+ RootPanel content = RootPanel.get("content");
+ RootPanel header = RootPanel.get("header");
+
+ content.clear();
+
+ header.clear();
+ header.add(new Header());
+
+ } else {
+ Window.alert("Login failed, try with admin/admin");
+ }
+ }
+ });
+ } else {
+ Window.alert("Login or Password is too short");
+ }
+ }
+
+ @UiHandler("loginBox")
+ void loginBoxValueChanged(ValueChangeEvent<String> event) {
+ if (event.getValue().length() < 3) {
+ completionLabel1.setText("Login too short (Size must be >3)");
+ tooShort = false;
+ } else {
+ tooShort = true;
+ completionLabel1.setText("");
+ }
+ }
+
+ @UiHandler("passwordBox")
+ void passwordBoxValueChanged(ValueChangeEvent<String> event) {
+ if (event.getValue().length() < 3) {
+ tooShort = false;
+ completionLabel2.setText("Password too short (Size must be >3)");
+ } else {
+ tooShort = true;
+ completionLabel2.setText("");
+ }
+ }
+
+
}
Added: refComp/client/src/main/java/fr/inra/refcomp/client/Login.ui.xml
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/Login.ui.xml (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/Login.ui.xml 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,28 @@
+<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
+ xmlns:gwt='urn:import:com.google.gwt.user.client.ui'>
+
+ <ui:with field='res' type='fr.inra.refcomp.client.resources.Style'/>
+
+ <gwt:HTMLPanel>
+ <div align="center">
+ <gwt:VerticalPanel styleName="{res.style.background}">
+ <gwt:Label text="Login" styleName="{res.style.greyText}"/>
+ <gwt:TextBox ui:field="loginBox"
+ styleName="{res.style.box}"/>
+ <gwt:Label text="Password" styleName="{res.style.greyText}"/>
+ <gwt:TextBox ui:field="passwordBox" styleName="{res.style.box}"/>
+ <gwt:HorizontalPanel verticalAlignment="ALIGN_MIDDLE">
+ <gwt:Button ui:field="buttonSubmit" text="Submit"
+ styleName="{res.style.loginButton}"/>
+ <gwt:CheckBox ui:field="myCheckBox"/>
+ <gwt:Label ui:field="myLabel" text="Remember me"
+ styleName="{res.style.greyText}"/>
+ </gwt:HorizontalPanel>
+ <gwt:Label ui:field="completionLabel1"
+ styleName="{res.style.greyText}"/>
+ <gwt:Label ui:field="completionLabel2"
+ styleName="{res.style.greyText}"/>
+ </gwt:VerticalPanel>
+ </div>
+ </gwt:HTMLPanel>
+</ui:UiBinder>
\ No newline at end of file
Added: refComp/client/src/main/java/fr/inra/refcomp/client/RefComp.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/RefComp.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/RefComp.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,16 @@
+package fr.inra.refcomp.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.ui.RootPanel;
+
+/**
+ * User: couteau
+ * Date: 3 nov. 2010
+ */
+public class RefComp implements EntryPoint {
+ public void onModuleLoad() {
+
+ RootPanel.get("content").add(new Login());
+
+ }
+}
Modified: refComp/client/src/main/java/fr/inra/refcomp/client/Search.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/Search.java 2010-11-03 15:15:50 UTC (rev 3)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/Search.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -2,8 +2,11 @@
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
+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;
+import org.gwtmultipage.client.UrlPatternEntryPoint;
/**
* User: couteau
@@ -12,11 +15,12 @@
public class Search implements EntryPoint {
Label searchLabel = new Label("Search");
+ TextBox searchBox = new TextBox();
+ Button searchButton = new Button("Search");
public void onModuleLoad(){
- GWT.log("Hello World!", null);
-
- RootPanel.get("test").add(searchLabel);
-
+ RootPanel.get("searchLabel").add(searchLabel);
+ RootPanel.get("searchBox").add(searchBox);
+ RootPanel.get("searchButton").add(searchButton);
}
}
Added: refComp/client/src/main/java/fr/inra/refcomp/client/SearchResults.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/SearchResults.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/SearchResults.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,22 @@
+package fr.inra.refcomp.client;
+
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.ui.Label;
+import com.google.gwt.user.client.ui.RootPanel;
+
+/**
+ * User: couteau
+ * Date: 3 nov. 2010
+ */
+public class SearchResults implements EntryPoint {
+
+ public void onModuleLoad(){
+ Label searchLabel = new Label("Search");
+ Label searchedText = new Label("Java");
+
+ RootPanel.get("searchLabel").add(searchLabel);
+ RootPanel.get("searchedText").add(searchedText);
+
+ }
+
+}
Added: refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/constants/Footer.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,8 @@
+package fr.inra.refcomp.client.constants;
+
+/**
+ * User: couteau
+ * Date: 3 nov. 2010
+ */
+public class Footer {
+}
Added: refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,90 @@
+package fr.inra.refcomp.client.constants;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.dom.client.StyleInjector;
+import com.google.gwt.event.dom.client.ClickEvent;
+import com.google.gwt.uibinder.client.UiBinder;
+import com.google.gwt.uibinder.client.UiField;
+import com.google.gwt.uibinder.client.UiHandler;
+import com.google.gwt.uibinder.client.UiTemplate;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.rpc.AsyncCallback;
+import com.google.gwt.user.client.ui.Button;
+import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.Panel;
+import com.google.gwt.user.client.ui.RootPanel;
+import fr.inra.refcomp.client.Login;
+import fr.inra.refcomp.client.resources.Style;
+
+/**
+ * User: couteau
+ * Date: 3 nov. 2010
+ */
+public class Header extends Composite {
+ @UiTemplate("Header.ui.xml")
+ interface MyUiBinder extends UiBinder<Panel, Header> {
+ }
+
+ private static final MyUiBinder binder = GWT.create(MyUiBinder.class);
+
+ @UiField(provided = true)
+ final Style res;
+
+ private static boolean stylesInjected = false;
+
+ public Header() {
+ this.res = GWT.create(Style.class);
+
+ // Inject only once.
+ if (!stylesInjected) {
+ StyleInjector.injectStylesheet(res.style().getText());
+ stylesInjected = true;
+ }
+
+ initWidget(binder.createAndBindUi(this));
+ }
+
+ @UiHandler("buttonLogout")
+ void doClickLogout(ClickEvent event) {
+
+ RootPanel content = RootPanel.get("content");
+ RootPanel header = RootPanel.get("header");
+ RootPanel footer = RootPanel.get("footer");
+
+ content.clear();
+ header.clear();
+ footer.clear();
+
+ content.add(new Login());
+ }
+
+ @UiHandler("buttonMySkills")
+ void doClickMySkills(ClickEvent event) {
+
+ Window.alert("Not implemented yet");
+ }
+
+ @UiHandler("buttonAdminSkills")
+ void doClickAdminSkills(ClickEvent event) {
+
+ Window.alert("Not implemented yet");
+ }
+
+ @UiHandler("buttonAdminCati")
+ void doClickAdminCati(ClickEvent event) {
+
+ Window.alert("Not implemented yet");
+ }
+
+ @UiHandler("buttonAdminServices")
+ void doClickAdminServices(ClickEvent event) {
+
+ Window.alert("Not implemented yet");
+ }
+
+ @UiHandler("buttonAdminUsers")
+ void doClickAdminUsers(ClickEvent event) {
+
+ Window.alert("Not implemented yet");
+ }
+}
Added: refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.ui.xml
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.ui.xml (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/constants/Header.ui.xml 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,22 @@
+<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
+ xmlns:gwt='urn:import:com.google.gwt.user.client.ui'>
+
+ <ui:with field='res' type='fr.inra.refcomp.client.resources.Style'/>
+
+ <gwt:HTMLPanel>
+ <gwt:HorizontalPanel verticalAlignment="ALIGN_MIDDLE">
+ <gwt:Button ui:field="buttonLogout" text="Logout"
+ styleName="{res.style.loginButton}"/>
+ <gwt:Button ui:field="buttonMySkills" text="My Skills"
+ styleName="{res.style.loginButton}"/>
+ <gwt:Button ui:field="buttonAdminSkills" text="Admin. Skills"
+ styleName="{res.style.loginButton}"/>
+ <gwt:Button ui:field="buttonAdminCati" text="Admin. Cati"
+ styleName="{res.style.loginButton}"/>
+ <gwt:Button ui:field="buttonAdminServices" text="Admin. Services"
+ styleName="{res.style.loginButton}"/>
+ <gwt:Button ui:field="buttonAdminUsers" text="Admin. Users"
+ styleName="{res.style.loginButton}"/>
+ </gwt:HorizontalPanel>
+ </gwt:HTMLPanel>
+</ui:UiBinder>
\ No newline at end of file
Added: refComp/client/src/main/java/fr/inra/refcomp/client/resources/Style.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/resources/Style.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/resources/Style.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,28 @@
+package fr.inra.refcomp.client.resources;
+
+import com.google.gwt.resources.client.ClientBundle;
+import com.google.gwt.resources.client.CssResource;
+
+/**
+ * User: couteau
+ * Date: 4 nov. 2010
+ */
+public interface Style extends ClientBundle{
+
+ /**
+ * Sample CssResource.
+ */
+ public interface MyCss extends CssResource {
+ String greyText();
+
+ String loginButton();
+
+ String box();
+
+ String background();
+ }
+
+ @ClientBundle.Source("refcomp.css")
+ MyCss style();
+
+}
Added: refComp/client/src/main/java/fr/inra/refcomp/client/resources/refcomp.css
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/resources/refcomp.css (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/resources/refcomp.css 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,36 @@
+.greyText {
+ font-family: "Lucida Grande", Arial, Sans-serif;
+ color: #778899;
+ font-size: 11px;
+ text-align: left;
+}
+
+.loginButton {
+ border: 1px solid #3399DD;
+ color: #FFFFFF;
+ background: #3322DD;
+ font-size: 11px;
+ font-weight: bold;
+ margin: 0 5px 0 0;
+ padding: 4px 10px 5px;
+ text-shadow: 0 -1px 0 #3399DD;
+}
+
+.box {
+ border: 1px solid #AACCEE;
+ display: block;
+ font-size: 12px;
+ margin: 0 0 5px;
+ padding: 3px;
+ width: 203px;
+}
+
+.background {
+ background-color: #DDEEF6;
+ border: 1px none transparent;
+ color: #778899;
+ font-size: 11px;
+ margin-left: -8px;
+ margin-top: 5px;
+ padding: 6px;
+}
Added: refComp/client/src/main/java/fr/inra/refcomp/client/services/LoginService.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/services/LoginService.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/services/LoginService.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,14 @@
+package fr.inra.refcomp.client.services;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
+
+/**
+ * User: couteau
+ * Date: 4 nov. 2010
+ */
+@RemoteServiceRelativePath("login")
+public interface LoginService extends RemoteService {
+ Boolean login(String login, String password);
+}
+
Added: refComp/client/src/main/java/fr/inra/refcomp/client/services/LoginServiceAsync.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/services/LoginServiceAsync.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/services/LoginServiceAsync.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,12 @@
+package fr.inra.refcomp.client.services;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * User: couteau
+ * Date: 4 nov. 2010
+ */
+public interface LoginServiceAsync {
+ void login(String login, String password, AsyncCallback<Boolean> callback);
+}
+
Added: refComp/client/src/main/java/fr/inra/refcomp/service/LoginServiceImpl.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/service/LoginServiceImpl.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/service/LoginServiceImpl.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,20 @@
+package fr.inra.refcomp.service;
+
+import com.google.gwt.user.server.rpc.RemoteServiceServlet;
+import fr.inra.refcomp.client.services.LoginService;
+
+/**
+ * User: couteau
+ * Date: 4 nov. 2010
+ */
+public class LoginServiceImpl extends RemoteServiceServlet implements
+ LoginService {
+
+ public Boolean login(String login, String password) {
+ if (login.equals("admin") && password.equals("admin"))
+ return true;
+ else
+ return false;
+ }
+}
+
Added: refComp/client/src/main/java/fr/inra/refcomp/service/Skill.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/service/Skill.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/service/Skill.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,62 @@
+package fr.inra.refcomp.service;
+
+/**
+ * User: couteau
+ * Date: 3 nov. 2010
+ */
+public class Skill {
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getLevel() {
+ return level;
+ }
+
+ public void setLevel(String level) {
+ this.level = level;
+ }
+
+ public String getComment() {
+ return comment;
+ }
+
+ public void setComment(String comment) {
+ this.comment = comment;
+ }
+
+ public String getLinkedSkill() {
+ return linkedSkill;
+ }
+
+ public void setLinkedSkill(String linkedSkill) {
+ this.linkedSkill = linkedSkill;
+ }
+
+ public String getRight() {
+ return right;
+ }
+
+ public void setRight(String right) {
+ this.right = right;
+ }
+
+ protected String name;
+ protected String level;
+ protected String comment;
+ protected String linkedSkill;
+ protected String right;
+
+ public Skill(String name, String level, String comment, String linkedSkill, String right){
+ this.name=name;
+ this.level=level;
+ this.comment=comment;
+ this.linkedSkill=linkedSkill;
+ this.right=right;
+ }
+}
Added: refComp/client/src/main/java/fr/inra/refcomp/service/SkillService.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/service/SkillService.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/service/SkillService.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,15 @@
+package fr.inra.refcomp.service;
+
+import com.google.gwt.user.client.rpc.RemoteService;
+import java.util.List;
+
+/**
+ * User: couteau
+ * Date: 3 nov. 2010
+ */
+public interface SkillService extends RemoteService {
+
+ List<Skill> getAllSkills();
+
+ void addSkill(Skill skill);
+}
Added: refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceAsync.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceAsync.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceAsync.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,14 @@
+package fr.inra.refcomp.service;
+
+import com.google.gwt.user.client.rpc.AsyncCallback;
+
+/**
+ * User: couteau
+ * Date: 3 nov. 2010
+ */
+public interface SkillServiceAsync {
+
+ void getAllSkills(AsyncCallback callback);
+
+ void addSkill(AsyncCallback callback);
+}
Added: refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceImpl.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceImpl.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/service/SkillServiceImpl.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,25 @@
+package fr.inra.refcomp.service;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * User: couteau
+ * Date: 3 nov. 2010
+ */
+public class SkillServiceImpl implements SkillService {
+ protected List<Skill> skills;
+
+ public SkillServiceImpl(){
+ skills = new ArrayList<Skill>();
+ skills.add(new Skill("Hervé Richard", "Maîtrise", "Enfin pas trop quand même", "R","CIAM"));
+ }
+
+ public List<Skill> getAllSkills(){
+ return skills;
+ }
+
+ public void addSkill(Skill skill){
+ skills.add(skill);
+ }
+}
Deleted: refComp/client/src/main/resources/fr/inra/refcomp/public/Login.html
===================================================================
--- refComp/client/src/main/resources/fr/inra/refcomp/public/Login.html 2010-11-03 15:15:50 UTC (rev 3)
+++ refComp/client/src/main/resources/fr/inra/refcomp/public/Login.html 2010-11-04 08:13:00 UTC (rev 4)
@@ -1,43 +0,0 @@
-<!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/RefComp.html
===================================================================
--- refComp/client/src/main/resources/fr/inra/refcomp/public/RefComp.html (rev 0)
+++ refComp/client/src/main/resources/fr/inra/refcomp/public/RefComp.html 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,30 @@
+<!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.SearchResults'>
+
+ <!-- -->
+ <!-- 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.RefComp.nocache.js"></script>
+</head>
+<body>
+
+<div id="header"></div>
+
+<div id="content"></div>
+
+<div id="footer"></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
Modified: refComp/client/src/main/resources/fr/inra/refcomp/public/Search.html
===================================================================
--- refComp/client/src/main/resources/fr/inra/refcomp/public/Search.html 2010-11-03 15:15:50 UTC (rev 3)
+++ refComp/client/src/main/resources/fr/inra/refcomp/public/Search.html 2010-11-04 08:13:00 UTC (rev 4)
@@ -16,11 +16,25 @@
<script type="text/javascript" language="javascript" src="fr.inra.refcomp.Search.nocache.js"></script>
</head>
<body>
-<div id="test">
+<div id="header">
+ <span id="Logout"></span>
+ <span id="mySkills"></span>
+ <span id="adminSkills"></span>
+ <span id="adminCati"></span>
+ <span id="adminServices"></span>
+ <span id="adminUsers"></span>
</div>
+<div id="content">
+ <span id="searchLabel"></span>
+ <span id="searchBox"></span>
+ <span id="searchButton"></span>
+</div>
+<div id="footer"></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>
Added: refComp/client/src/main/resources/fr/inra/refcomp/public/SearchResults.html
===================================================================
--- refComp/client/src/main/resources/fr/inra/refcomp/public/SearchResults.html (rev 0)
+++ refComp/client/src/main/resources/fr/inra/refcomp/public/SearchResults.html 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,43 @@
+<!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.SearchResults'>
+
+ <!-- -->
+ <!-- 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.SearchResults.nocache.js"></script>
+</head>
+<body>
+<div id="header">
+ <span id="Logout"></span>
+ <span id="mySkills"></span>
+ <span id="adminSkills"></span>
+ <span id="adminCati"></span>
+ <span id="adminServices"></span>
+ <span id="adminUsers"></span>
+
+</div>
+
+<div id="facets"></div>
+
+<div id="content">
+ <span id="searchLabel"></span>
+ <span id="searchedText"></span>
+ <div id="searchResults"></div>
+</div>
+
+<div id="footer"></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/resources/refcomp.css
===================================================================
--- refComp/client/src/main/resources/fr/inra/refcomp/resources/refcomp.css (rev 0)
+++ refComp/client/src/main/resources/fr/inra/refcomp/resources/refcomp.css 2010-11-04 08:13:00 UTC (rev 4)
@@ -0,0 +1,36 @@
+.greyText {
+ font-family: "Lucida Grande", Arial, Sans-serif;
+ color: #778899;
+ font-size: 11px;
+ text-align: left;
+}
+
+.loginButton {
+ border: 1px solid #3399DD;
+ color: #FFFFFF;
+ background: #3322DD;
+ font-size: 11px;
+ font-weight: bold;
+ margin: 0 5px 0 0;
+ padding: 4px 10px 5px;
+ text-shadow: 0 -1px 0 #3399DD;
+}
+
+.box {
+ border: 1px solid #AACCEE;
+ display: block;
+ font-size: 12px;
+ margin: 0 0 5px;
+ padding: 3px;
+ width: 203px;
+}
+
+.background {
+ background-color: #DDEEF6;
+ border: 1px none transparent;
+ color: #778899;
+ font-size: 11px;
+ margin-left: -8px;
+ margin-top: 5px;
+ padding: 6px;
+}
Modified: refComp/client/src/main/webapp/WEB-INF/web.xml
===================================================================
--- refComp/client/src/main/webapp/WEB-INF/web.xml 2010-11-03 15:15:50 UTC (rev 3)
+++ refComp/client/src/main/webapp/WEB-INF/web.xml 2010-11-04 08:13:00 UTC (rev 4)
@@ -8,4 +8,25 @@
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
+
+ <servlet>
+ <servlet-name>SkillService</servlet-name>
+ <servlet-class>fr.inra.refcomp.service.SkillServiceImpl
+ </servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>SkillService</servlet-name>
+ <url-pattern>/fr.inra.refcomp.RefComp/skillService</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <servlet-name>LoginService</servlet-name>
+ <servlet-class>fr.inra.refcomp.service.LoginServiceImpl
+ </servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>LoginService</servlet-name>
+ <url-pattern>/fr.inra.refcomp.RefComp/loginService</url-pattern>
+ </servlet-mapping>
+
</web-app>
Deleted: refComp/client/src/test/java/fr/inra/refcomp/client/GwtTestSample.java
===================================================================
--- refComp/client/src/test/java/fr/inra/refcomp/client/GwtTestSample.java 2010-11-03 15:15:50 UTC (rev 3)
+++ refComp/client/src/test/java/fr/inra/refcomp/client/GwtTestSample.java 2010-11-04 08:13:00 UTC (rev 4)
@@ -1,20 +0,0 @@
-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
1
0
r3 - in refComp/client/src/main/java/fr/inra/refcomp/client: . example1
by athimel@users.chorem.org 03 Nov '10
by athimel@users.chorem.org 03 Nov '10
03 Nov '10
Author: athimel
Date: 2010-11-03 16:15:50 +0100 (Wed, 03 Nov 2010)
New Revision: 3
Url: http://chorem.org/repositories/revision/incubator/3
Log:
Add an example with LazyInstantiation
Added:
refComp/client/src/main/java/fr/inra/refcomp/client/example1/
refComp/client/src/main/java/fr/inra/refcomp/client/example1/LoginExampleLazyInstantiation.java
Added: refComp/client/src/main/java/fr/inra/refcomp/client/example1/LoginExampleLazyInstantiation.java
===================================================================
--- refComp/client/src/main/java/fr/inra/refcomp/client/example1/LoginExampleLazyInstantiation.java (rev 0)
+++ refComp/client/src/main/java/fr/inra/refcomp/client/example1/LoginExampleLazyInstantiation.java 2010-11-03 15:15:50 UTC (rev 3)
@@ -0,0 +1,76 @@
+package fr.inra.refcomp.client.example1;
+
+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 LoginExampleLazyInstantiation implements EntryPoint {
+
+ Label loginLabel;
+ TextBox loginBox;
+ Label pwdLabel;
+ TextBox pwdBox;
+ Button button;
+
+ public void onModuleLoad() {
+ RootPanel.get("loginLabel").add(getLoginLabel());
+ RootPanel.get("loginBox").add(getLoginBox());
+ RootPanel.get("pwdLabel").add(getPwdLabel());
+ RootPanel.get("pwdBox").add(getPwdBox());
+ RootPanel.get("submitButton").add(getButton());
+
+ getButton().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", "");
+ }
+ });
+
+ }
+
+ protected Label getLoginLabel() {
+ if (loginLabel == null) {
+ loginLabel = new Label("Login : ");
+ }
+ return loginLabel;
+ }
+
+ protected TextBox getLoginBox() {
+ if (loginBox == null) {
+ loginBox = new TextBox();
+ }
+ return loginBox;
+ }
+
+ public Label getPwdLabel() {
+ if (pwdLabel == null) {
+ pwdLabel = new Label("Password : ");
+ }
+ return pwdLabel;
+ }
+
+ public TextBox getPwdBox() {
+ if (pwdBox == null) {
+ pwdBox = new TextBox();
+ }
+ return pwdBox;
+ }
+
+ public Button getButton() {
+ if (button == null) {
+ button = new Button("Submit");
+ }
+ return button;
+ }
+
+}
1
0
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/…">
+<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/…">
+<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(a)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/…">
+<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
1
0
r431 - in jpa2-validation/trunk: . jsr303-validation jsr317-jpa2
by fdesbois@users.nuiton.org 03 Nov '10
by fdesbois@users.nuiton.org 03 Nov '10
03 Nov '10
Author: fdesbois
Date: 2010-11-03 13:05:07 +0100 (Wed, 03 Nov 2010)
New Revision: 431
Url: http://nuiton.org/repositories/revision/sandbox/431
Log:
Init multi-module project for jpa2 and validation tests
Added:
jpa2-validation/trunk/LICENSE.txt
jpa2-validation/trunk/README.txt
jpa2-validation/trunk/changelog.txt
jpa2-validation/trunk/jsr303-validation/
jpa2-validation/trunk/jsr303-validation/LICENSE.txt
jpa2-validation/trunk/jsr303-validation/README.txt
jpa2-validation/trunk/jsr303-validation/changelog.txt
jpa2-validation/trunk/jsr303-validation/pom.xml
jpa2-validation/trunk/jsr317-jpa2/
jpa2-validation/trunk/jsr317-jpa2/LICENSE.txt
jpa2-validation/trunk/jsr317-jpa2/README.txt
jpa2-validation/trunk/jsr317-jpa2/changelog.txt
jpa2-validation/trunk/jsr317-jpa2/pom.xml
jpa2-validation/trunk/pom.xml
Modified:
jpa2-validation/trunk/
Property changes on: jpa2-validation/trunk
___________________________________________________________________
Added: svn:ignore
+ *.iml
Added: jpa2-validation/trunk/LICENSE.txt
===================================================================
--- jpa2-validation/trunk/LICENSE.txt (rev 0)
+++ jpa2-validation/trunk/LICENSE.txt 2010-11-03 12:05:07 UTC (rev 431)
@@ -0,0 +1,166 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
Added: jpa2-validation/trunk/README.txt
===================================================================
--- jpa2-validation/trunk/README.txt (rev 0)
+++ jpa2-validation/trunk/README.txt 2010-11-03 12:05:07 UTC (rev 431)
@@ -0,0 +1,2 @@
+To deploy new version of pom: mvn deploy
+To install localy: mvn install
Property changes on: jpa2-validation/trunk/jsr303-validation
___________________________________________________________________
Added: svn:ignore
+ *.iml
Added: jpa2-validation/trunk/jsr303-validation/LICENSE.txt
===================================================================
--- jpa2-validation/trunk/jsr303-validation/LICENSE.txt (rev 0)
+++ jpa2-validation/trunk/jsr303-validation/LICENSE.txt 2010-11-03 12:05:07 UTC (rev 431)
@@ -0,0 +1,166 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
Added: jpa2-validation/trunk/jsr303-validation/README.txt
===================================================================
--- jpa2-validation/trunk/jsr303-validation/README.txt (rev 0)
+++ jpa2-validation/trunk/jsr303-validation/README.txt 2010-11-03 12:05:07 UTC (rev 431)
@@ -0,0 +1,2 @@
+To deploy new version of pom: mvn deploy
+To install localy: mvn install
Added: jpa2-validation/trunk/jsr303-validation/pom.xml
===================================================================
--- jpa2-validation/trunk/jsr303-validation/pom.xml (rev 0)
+++ jpa2-validation/trunk/jsr303-validation/pom.xml 2010-11-03 12:05:07 UTC (rev 431)
@@ -0,0 +1,63 @@
+<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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <!-- ************************************************************* -->
+ <!-- *** POM Relationships *************************************** -->
+ <!-- ************************************************************* -->
+
+ <parent>
+ <groupId>org.nuiton.sandbox</groupId>
+ <artifactId>jsr-tests</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>jsr303-validation</artifactId>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </dependency>
+
+ </dependencies>
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>JSR Tests :: JSR-303 Validation</name>
+ <description>Validation tests</description>
+ <inceptionYear>2010</inceptionYear>
+ <url>http://maven-site.nuiton.org/${project.artifactId}</url>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+
+ <packaging>jar</packaging>
+
+ <build>
+
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+
+ </build>
+
+ <!-- Source control management. -->
+ <scm>
+ <connection>scm:svn:http://svn.nuiton.org/svn/sandbox/jpa2-validation/trunk/jsr303-vali…</connection>
+ <developerConnection>scm:svn:http://svn.nuiton.org/svn/sandbox/jpa2-validation/trunk/jsr303-vali…</developerConnection>
+ <url>http://www.nuiton.org/repositories/browse/sandbox/jpa2-validation/trunk/jsr…</url>
+ </scm>
+
+
+</project>
Property changes on: jpa2-validation/trunk/jsr317-jpa2
___________________________________________________________________
Added: svn:ignore
+ *.iml
Added: jpa2-validation/trunk/jsr317-jpa2/LICENSE.txt
===================================================================
--- jpa2-validation/trunk/jsr317-jpa2/LICENSE.txt (rev 0)
+++ jpa2-validation/trunk/jsr317-jpa2/LICENSE.txt 2010-11-03 12:05:07 UTC (rev 431)
@@ -0,0 +1,166 @@
+ GNU LESSER GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+
+ This version of the GNU Lesser General Public License incorporates
+the terms and conditions of version 3 of the GNU General Public
+License, supplemented by the additional permissions listed below.
+
+ 0. Additional Definitions.
+
+ As used herein, "this License" refers to version 3 of the GNU Lesser
+General Public License, and the "GNU GPL" refers to version 3 of the GNU
+General Public License.
+
+ "The Library" refers to a covered work governed by this License,
+other than an Application or a Combined Work as defined below.
+
+ An "Application" is any work that makes use of an interface provided
+by the Library, but which is not otherwise based on the Library.
+Defining a subclass of a class defined by the Library is deemed a mode
+of using an interface provided by the Library.
+
+ A "Combined Work" is a work produced by combining or linking an
+Application with the Library. The particular version of the Library
+with which the Combined Work was made is also called the "Linked
+Version".
+
+ The "Minimal Corresponding Source" for a Combined Work means the
+Corresponding Source for the Combined Work, excluding any source code
+for portions of the Combined Work that, considered in isolation, are
+based on the Application, and not on the Linked Version.
+
+ The "Corresponding Application Code" for a Combined Work means the
+object code and/or source code for the Application, including any data
+and utility programs needed for reproducing the Combined Work from the
+Application, but excluding the System Libraries of the Combined Work.
+
+ 1. Exception to Section 3 of the GNU GPL.
+
+ You may convey a covered work under sections 3 and 4 of this License
+without being bound by section 3 of the GNU GPL.
+
+ 2. Conveying Modified Versions.
+
+ If you modify a copy of the Library, and, in your modifications, a
+facility refers to a function or data to be supplied by an Application
+that uses the facility (other than as an argument passed when the
+facility is invoked), then you may convey a copy of the modified
+version:
+
+ a) under this License, provided that you make a good faith effort to
+ ensure that, in the event an Application does not supply the
+ function or data, the facility still operates, and performs
+ whatever part of its purpose remains meaningful, or
+
+ b) under the GNU GPL, with none of the additional permissions of
+ this License applicable to that copy.
+
+ 3. Object Code Incorporating Material from Library Header Files.
+
+ The object code form of an Application may incorporate material from
+a header file that is part of the Library. You may convey such object
+code under terms of your choice, provided that, if the incorporated
+material is not limited to numerical parameters, data structure
+layouts and accessors, or small macros, inline functions and templates
+(ten or fewer lines in length), you do both of the following:
+
+ a) Give prominent notice with each copy of the object code that the
+ Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the object code with a copy of the GNU GPL and this license
+ document.
+
+ 4. Combined Works.
+
+ You may convey a Combined Work under terms of your choice that,
+taken together, effectively do not restrict modification of the
+portions of the Library contained in the Combined Work and reverse
+engineering for debugging such modifications, if you also do each of
+the following:
+
+ a) Give prominent notice with each copy of the Combined Work that
+ the Library is used in it and that the Library and its use are
+ covered by this License.
+
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
+ document.
+
+ c) For a Combined Work that displays copyright notices during
+ execution, include the copyright notice for the Library among
+ these notices, as well as a reference directing the user to the
+ copies of the GNU GPL and this license document.
+
+ d) Do one of the following:
+
+ 0) Convey the Minimal Corresponding Source under the terms of this
+ License, and the Corresponding Application Code in a form
+ suitable for, and under terms that permit, the user to
+ recombine or relink the Application with a modified version of
+ the Linked Version to produce a modified Combined Work, in the
+ manner specified by section 6 of the GNU GPL for conveying
+ Corresponding Source.
+
+ 1) Use a suitable shared library mechanism for linking with the
+ Library. A suitable mechanism is one that (a) uses at run time
+ a copy of the Library already present on the user's computer
+ system, and (b) will operate properly with a modified version
+ of the Library that is interface-compatible with the Linked
+ Version.
+
+ e) Provide Installation Information, but only if you would otherwise
+ be required to provide such information under section 6 of the
+ GNU GPL, and only to the extent that such information is
+ necessary to install and execute a modified version of the
+ Combined Work produced by recombining or relinking the
+ Application with a modified version of the Linked Version. (If
+ you use option 4d0, the Installation Information must accompany
+ the Minimal Corresponding Source and Corresponding Application
+ Code. If you use option 4d1, you must provide the Installation
+ Information in the manner specified by section 6 of the GNU GPL
+ for conveying Corresponding Source.)
+
+ 5. Combined Libraries.
+
+ You may place library facilities that are a work based on the
+Library side by side in a single library together with other library
+facilities that are not Applications and are not covered by this
+License, and convey such a combined library under terms of your
+choice, if you do both of the following:
+
+ a) Accompany the combined library with a copy of the same work based
+ on the Library, uncombined with any other library facilities,
+ conveyed under the terms of this License.
+
+ b) Give prominent notice with the combined library that part of it
+ is a work based on the Library, and explaining where to find the
+ accompanying uncombined form of the same work.
+
+ 6. Revised Versions of the GNU Lesser General Public License.
+
+ The Free Software Foundation may publish revised and/or new versions
+of the GNU Lesser General Public License from time to time. Such new
+versions will be similar in spirit to the present version, but may
+differ in detail to address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Library as you received it specifies that a certain numbered version
+of the GNU Lesser General Public License "or any later version"
+applies to it, you have the option of following the terms and
+conditions either of that published version or of any later version
+published by the Free Software Foundation. If the Library as you
+received it does not specify a version number of the GNU Lesser
+General Public License, you may choose any version of the GNU Lesser
+General Public License ever published by the Free Software Foundation.
+
+ If the Library as you received it specifies that a proxy can decide
+whether future versions of the GNU Lesser General Public License shall
+apply, that proxy's public statement of acceptance of any version is
+permanent authorization for you to choose that version for the
+Library.
+
Added: jpa2-validation/trunk/jsr317-jpa2/README.txt
===================================================================
--- jpa2-validation/trunk/jsr317-jpa2/README.txt (rev 0)
+++ jpa2-validation/trunk/jsr317-jpa2/README.txt 2010-11-03 12:05:07 UTC (rev 431)
@@ -0,0 +1,2 @@
+To deploy new version of pom: mvn deploy
+To install localy: mvn install
Added: jpa2-validation/trunk/jsr317-jpa2/pom.xml
===================================================================
--- jpa2-validation/trunk/jsr317-jpa2/pom.xml (rev 0)
+++ jpa2-validation/trunk/jsr317-jpa2/pom.xml 2010-11-03 12:05:07 UTC (rev 431)
@@ -0,0 +1,63 @@
+<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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <!-- ************************************************************* -->
+ <!-- *** POM Relationships *************************************** -->
+ <!-- ************************************************************* -->
+
+ <parent>
+ <groupId>org.nuiton.sandbox</groupId>
+ <artifactId>jsr-tests</artifactId>
+ <version>0.1-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>jsr317-jpa2</artifactId>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ </dependency>
+
+ </dependencies>
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>JSR Tests :: JSR-317 JPA2</name>
+ <description>JPA2 tests</description>
+ <inceptionYear>2010</inceptionYear>
+ <url>http://maven-site.nuiton.org/${project.artifactId}</url>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+
+ <packaging>jar</packaging>
+
+ <build>
+
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ <filtering>true</filtering>
+ </resource>
+ </resources>
+
+ </build>
+
+ <!-- Source control management. -->
+ <scm>
+ <connection>scm:svn:http://svn.nuiton.org/svn/sandbox/jpa2-validation/trunk/jsr317-jpa2</connection>
+ <developerConnection>scm:svn:http://svn.nuiton.org/svn/sandbox/jpa2-validation/trunk/jsr317-jpa2</developerConnection>
+ <url>http://www.nuiton.org/repositories/browse/sandbox/jpa2-validation/trunk/jsr…</url>
+ </scm>
+
+
+</project>
Added: jpa2-validation/trunk/pom.xml
===================================================================
--- jpa2-validation/trunk/pom.xml (rev 0)
+++ jpa2-validation/trunk/pom.xml 2010-11-03 12:05:07 UTC (rev 431)
@@ -0,0 +1,65 @@
+<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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <!-- ************************************************************* -->
+ <!-- *** POM Relationships *************************************** -->
+ <!-- ************************************************************* -->
+
+ <parent>
+ <groupId>org.nuiton</groupId>
+ <artifactId>mavenpom</artifactId>
+ <version>2.4</version>
+ </parent>
+
+ <groupId>org.nuiton.sandbox</groupId>
+ <artifactId>jsr-tests</artifactId>
+ <version>0.1-SNAPSHOT</version>
+
+ <modules>
+ <!-- JSR-317 -->
+ <module>jsr317-jpa2</module>
+ <!-- JSR-303 -->
+ <module>jsr303-validation</module>
+ </modules>
+
+ <dependencyManagement>
+ <dependencies>
+
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>${log4jVersion}</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ </dependencies>
+ </dependencyManagement>
+
+ <!-- ************************************************************* -->
+ <!-- *** Project Information ************************************* -->
+ <!-- ************************************************************* -->
+
+ <name>JSR Tests</name>
+ <description>JPA2 and Validation tests</description>
+ <inceptionYear>2010</inceptionYear>
+ <url>http://maven-site.nuiton.org/${project.artifactId}</url>
+
+ <!-- ************************************************************* -->
+ <!-- *** Build Settings ****************************************** -->
+ <!-- ************************************************************* -->
+
+ <packaging>pom</packaging>
+
+ <properties>
+ </properties>
+
+ <!-- Source control management. -->
+ <scm>
+ <connection>scm:svn:http://svn.nuiton.org/svn/sandbox/jpa2-validation/trunk</connection>
+ <developerConnection>scm:svn:http://svn.nuiton.org/svn/sandbox/jpa2-validation/trunk</developerConnection>
+ <url>http://www.nuiton.org/repositories/browse/sandbox/jpa2-validation/trunk</url>
+ </scm>
+
+
+</project>
1
0
Author: fdesbois
Date: 2010-11-03 10:57:48 +0100 (Wed, 03 Nov 2010)
New Revision: 430
Url: http://nuiton.org/repositories/revision/sandbox/430
Log:
add sandbox project for jpa2 and validation tests (multimodule)
Added:
jpa2-validation/
jpa2-validation/trunk/
1
0
Author: tchemit
Date: 2010-10-26 17:07:53 +0200 (Tue, 26 Oct 2010)
New Revision: 429
Url: http://nuiton.org/repositories/revision/sandbox/429
Log:
add svn:ignore
Modified:
codelutin-build/labs/
Property changes on: codelutin-build/labs
___________________________________________________________________
Added: svn:ignore
+ target
.settings
.classpath
.project
*.ipr
*.iws
*.iml
1
0