Author: thomas.diesler(a)jboss.com
Date: 2008-07-29 16:56:49 -0400 (Tue, 29 Jul 2008)
New Revision: 1756
Removed:
jbossbpm/spec/trunk/modules/samples/airticket/rpc/
jbossbpm/spec/trunk/modules/samples/airticket/server/
Modified:
jbossbpm/spec/trunk/.classpath
jbossbpm/spec/trunk/modules/samples/airticket/pom.xml
jbossbpm/spec/trunk/modules/samples/airticket/war/pom.xml
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/Application.java
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/Application.gwt.xml
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/Application.html
jbossbpm/spec/trunk/pom.xml
Log:
Remove unwanted gwt sample stuff
Modified: jbossbpm/spec/trunk/.classpath
===================================================================
--- jbossbpm/spec/trunk/.classpath 2008-07-29 19:40:36 UTC (rev 1755)
+++ jbossbpm/spec/trunk/.classpath 2008-07-29 20:56:49 UTC (rev 1756)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="modules/api/target/classes"
path="modules/api/src/main/java"/>
+ <classpathentry kind="src"
path="modules/samples/airticket/war/src/main/java"/>
<classpathentry kind="src" path="modules/ri/src/test/java"/>
<classpathentry kind="src" path="modules/ri/src/main/java"/>
<classpathentry kind="src"
output="modules/testsuite/target/test-classes"
path="modules/testsuite/src/test/java"/>
Modified: jbossbpm/spec/trunk/modules/samples/airticket/pom.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/pom.xml 2008-07-29 19:40:36 UTC (rev
1755)
+++ jbossbpm/spec/trunk/modules/samples/airticket/pom.xml 2008-07-29 20:56:49 UTC (rev
1756)
@@ -1,84 +1,20 @@
-<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>
- <groupId>com.totsp.gwt</groupId>
- <artifactId>maven-googlewebtoolkit2-sample</artifactId>
- <packaging>pom</packaging>
- <version>1.0-SNAPSHOT</version>
- <name>maven-googlewebtoolkit2-sample</name>
-
- <pluginRepositories>
- <pluginRepository>
- <id>gwt-maven-plugins</id>
- <url>
-
http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
- </url>
- </pluginRepository>
- </pluginRepositories>
-
- <repositories>
- <repository>
- <id>java.net</id>
- <
url>http://download.java.net/maven/1</url>
- <layout>legacy</layout>
- </repository>
- <repository>
- <id>gwt-maven</id>
- <url>
-
http://gwt-maven.googlecode.com/svn/trunk/mavenrepo/
- </url>
- </repository>
- </repositories>
+<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>
+ <name>JBossBPM - Spec Samples Airticket</name>
+ <groupId>org.jboss.bpm</groupId>
+ <artifactId>bpm-sample-airticket</artifactId>
+ <packaging>pom</packaging>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.totsp.gwt</groupId>
- <artifactId>
- maven-googlewebtoolkit2-sample-war
- </artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.totsp.gwt</groupId>
- <artifactId>
- maven-googlewebtoolkit2-sample-rpc
- </artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.totsp.gwt</groupId>
- <artifactId>
- maven-googlewebtoolkit2-sample-server
- </artifactId>
- <version>${project.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-servlet</artifactId>
- <version>1.4.61</version>
- </dependency>
- <dependency>
- <groupId>com.google.gwt</groupId>
- <artifactId>gwt-user</artifactId>
- <version>1.4.61</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
-
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>3.8.1</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <modules>
- <module>rpc</module>
- <module>server</module>
- <module>war</module>
- </modules>
-</project>
+ <!-- Parent -->
+ <parent>
+ <groupId>org.jboss.bpm</groupId>
+ <artifactId>bpm-spec</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../../../pom.xml</relativePath>
+ </parent>
+
+ <modules>
+ <module>war</module>
+ </modules>
+</project>
\ No newline at end of file
Modified: jbossbpm/spec/trunk/modules/samples/airticket/war/pom.xml
===================================================================
--- jbossbpm/spec/trunk/modules/samples/airticket/war/pom.xml 2008-07-29 19:40:36 UTC (rev
1755)
+++ jbossbpm/spec/trunk/modules/samples/airticket/war/pom.xml 2008-07-29 20:56:49 UTC (rev
1756)
@@ -1,14 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project>
+ <modelVersion>4.0.0</modelVersion>
+ <name>JBossBPM - Spec Samples Airticket (WAR)</name>
+ <groupId>org.jboss.bpm</groupId>
+ <artifactId>bpm-sample-airticket-war</artifactId>
+ <packaging>war</packaging>
+
+ <!-- Parent -->
<parent>
- <artifactId>maven-googlewebtoolkit2-sample</artifactId>
- <groupId>com.totsp.gwt</groupId>
- <version>1.0-SNAPSHOT</version>
+ <groupId>org.jboss.bpm</groupId>
+ <artifactId>bpm-sample-airticket</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
</parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>maven-googlewebtoolkit2-sample-war</artifactId>
- <packaging>war</packaging>
- <name>maven-googlewebtoolkit2-sample-war</name>
+
+ <!-- Plugins -->
<build>
<plugins>
<!-- currently gwt supports java 1.4 (client) source -->
@@ -132,10 +137,6 @@
</reporting>
<dependencies>
<dependency>
- <groupId>com.totsp.gwt</groupId>
- <artifactId> maven-googlewebtoolkit2-sample-server</artifactId>
- </dependency>
- <dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-servlet</artifactId>
<scope>runtime</scope>
Modified:
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/Application.java
===================================================================
---
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/Application.java 2008-07-29
19:40:36 UTC (rev 1755)
+++
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/java/com/totsp/mavenplugin/gwt/sample/client/Application.java 2008-07-29
20:56:49 UTC (rev 1756)
@@ -2,95 +2,46 @@
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
-import com.google.gwt.user.client.rpc.AsyncCallback;
-import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
-import com.totsp.mavenplugin.gwt.sample.client.SampleRemoteService;
-import com.totsp.mavenplugin.gwt.sample.client.SampleRemoteServiceAsync;
+import com.totsp.mavenplugin.gwt.sample.client.SampleImageBundle;
/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
-public class Application implements EntryPoint {
+public class Application implements EntryPoint
+{
+ /**
+ * This is the entry point method.
+ */
+ public void onModuleLoad()
+ {
+ // image bundle
+ final SampleImageBundle sampleImageBundle =
(SampleImageBundle)GWT.create(SampleImageBundle.class);
+ final Image gwtLogoImage = sampleImageBundle.getGWTLogo().createImage();
+ final Button button = new Button("Submit");
+ final Label label = new Label();
+
+ // css inclusion and use
+ button.setStyleName("gwtMavenButton");
- /**
- * This is the entry point method.
- */
- public void onModuleLoad() {
-
- //example of image bundle
- final SampleImageBundle sampleImageBundle = (SampleImageBundle)
GWT.create(SampleImageBundle.class);
- final Image gwtLogoImage = sampleImageBundle.getGWTLogo().createImage();
- gwtLogoImage.setTitle("This image was delivered via automatic resource inclusion
and the ImageBundle feature");
-
-
- final Button button = new Button("Run GWT Async RPC!");
- //example of css inclusion and use
- button.setStyleName("gwtMavenButton");
-
- final Label label = new Label();
+ button.addClickListener(new ClickListener()
+ {
+ public void onClick(Widget sender)
+ {
+ if (label.getText().equals(""))
+ label.setText("Hello World");
+ else
+ label.setText("");
+ }
+ });
- button.setTitle("This will execute the RPC call to the Java v1.5 GWT
server");
-
- button.addClickListener(new ClickListener() {
- public void onClick(Widget sender) {
-
- // (1) Create the client proxy. Note that although you are
- // creating the
- // service interface proper, you cast the result to the
- // asynchronous
- // version of
- // the interface. The cast is always safe because the generated
- // proxy
- // implements the asynchronous interface automatically.
- SampleRemoteServiceAsync sampleRemoteService = (SampleRemoteServiceAsync) GWT
- .create(SampleRemoteService.class);
-
- // (2) Specify the URL at which our service implementation is
- // running.
- // Note that the target URL must reside on the same domain and
- // port from
- // which the host page was served.
- ServiceDefTarget endpoint = (ServiceDefTarget) sampleRemoteService;
-
- String moduleRelativeURL = GWT.getModuleBaseURL()
- + "sampleRemoteService";
- endpoint.setServiceEntryPoint(moduleRelativeURL);
-
- // (3) Create an asynchronous callback to handle the result.
- AsyncCallback callback = new AsyncCallback() {
- public void onSuccess(Object result) {
- // do some UI stuff to show success
- label.setText((String) result);
- }
-
- public void onFailure(Throwable caught) {
- // do some UI stuff to show failure
- label.setText("DAMMIT! This didnt work.");
- }
- };
-
- // (4) Make the call. Control flow will continue immediately and
- // later
- // 'callback' will be invoked when the RPC completes.
- sampleRemoteService.doComplimentMe(callback);
-
- }
- });
-
- // Assume that the host HTML has elements defined whose
- // IDs are "slot1", "slot2". In a real app, you probably would not
want
- // 4532
- // to hard-code IDs. Instead, you could, for example, search for all
- // elements with a particular CSS class and replace them with widgets.
- //
- RootPanel.get("gwtLogo").add(gwtLogoImage);
- RootPanel.get("rpcButton").add(button);
- RootPanel.get("rpcResponse").add(label);
- }
+ RootPanel.get("gwtLogo").add(gwtLogoImage);
+ RootPanel.get("rpcButton").add(button);
+ RootPanel.get("rpcResponse").add(label);
+ }
}
Modified:
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/Application.gwt.xml
===================================================================
---
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/Application.gwt.xml 2008-07-29
19:40:36 UTC (rev 1755)
+++
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/Application.gwt.xml 2008-07-29
20:56:49 UTC (rev 1756)
@@ -3,9 +3,6 @@
<!-- Inherit the core Web Toolkit stuff. -->
<inherits name='com.google.gwt.user.User' />
- <!-- Inherit the server project, which defines a service servlet endpoint -->
- <inherits name='com.totsp.mavenplugin.gwt.sample.server.ApplicationServices'
/>
-
<!-- Specify the app entry point class. -->
<entry-point class='com.totsp.mavenplugin.gwt.sample.client.Application'
/>
Modified:
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/Application.html
===================================================================
---
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/Application.html 2008-07-29
19:40:36 UTC (rev 1755)
+++
jbossbpm/spec/trunk/modules/samples/airticket/war/src/main/resources/com/totsp/mavenplugin/gwt/sample/public/Application.html 2008-07-29
20:56:49 UTC (rev 1756)
@@ -31,37 +31,6 @@
style="width: 0; height: 0; border: 0"></iframe>
<table align=center>
<tr align="center">
- <td>
- <h1>Welcome to the maven-googlewebtoolkit2-sample</h1>
- <table>
- <tr>
- <td>
- <p>This is a <i>simple</i> gwt-maven example project, based on
GWT v1.4.6x and maven v2.0.9+.</p>
-
- Inside this example you will find a...
- <ul>
- <li>Maven Multi-Module project</li>
- <li>GWT client that makes an RPC/AJAX call to a Java1.5 GWT
server</li>
- <li>Automatic Resource Inclusion (css)</li>
- <li>Automatic Resource Inclusion (images via an ImageBundle)</li>
- </ul>
-
- Maven Modules Explained:
- <ul>
- <li>parent: this is the root/parent of the project</li>
- <li>war: this is the client GWT code</li>
- <li>rpc: this is an interface to a GWT server (not an
- implementation)</li>
- <li>server: is the implementation of the rpc interface (in
- Java1.5+)</li>
- <li>Look inside the pom.xml's for more comments and docs</li>
- </ul>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- <tr align="center">
<td>The Demo is Below<hr/></td>
</tr>
<!-- Below is where the gwt widgets are injected -->
Modified: jbossbpm/spec/trunk/pom.xml
===================================================================
--- jbossbpm/spec/trunk/pom.xml 2008-07-29 19:40:36 UTC (rev 1755)
+++ jbossbpm/spec/trunk/pom.xml 2008-07-29 20:56:49 UTC (rev 1756)
@@ -31,12 +31,14 @@
<module>modules/api</module>
<module>modules/ri</module>
<module>modules/dialects</module>
+ <module>modules/samples/airticket</module>
<module>modules/testsuite</module>
</modules>
<!-- Properties -->
<properties>
<commons.logging.version>1.1.1</commons.logging.version>
+ <google.gwt.version>1.4.61</google.gwt.version>
<jaxb.ri.version>2.1.7</jaxb.ri.version>
<javax.servlet.version>2.5</javax.servlet.version>
<jboss.microcontainer.version>2.0.0.Beta15</jboss.microcontainer.version>
@@ -48,6 +50,16 @@
<dependencyManagement>
<dependencies>
<dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-servlet</artifactId>
+ <version>${google.gwt.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.google.gwt</groupId>
+ <artifactId>gwt-user</artifactId>
+ <version>${google.gwt.version}</version>
+ </dependency>
+ <dependency>
<groupId>com.sun.xml.bind</groupId>
<artifactId>jaxb-impl</artifactId>
<version>${jaxb.ri.version}</version>