From 5bed897301fcb8627b32c9293f44364c1eb934d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 23 Sep 2011 08:35:57 +0200 Subject: add vaadin-app source tree --- vaadin-app/HOWTO | 22 + vaadin-app/build.properties | 10 + vaadin-app/build.xml | 516 +++++++++++++++++++++ vaadin-app/build.xml.orig | 515 ++++++++++++++++++++ .../src/ch/asynk/helloworld/HelloWorldApp.java | 21 + vaadin-app/web/META-INF/MANIFEST.MF | 3 + vaadin-app/web/WEB-INF/web.xml | 166 +++++++ 7 files changed, 1253 insertions(+) create mode 100644 vaadin-app/HOWTO create mode 100644 vaadin-app/build.properties create mode 100644 vaadin-app/build.xml create mode 100644 vaadin-app/build.xml.orig create mode 100644 vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java create mode 100644 vaadin-app/web/META-INF/MANIFEST.MF create mode 100644 vaadin-app/web/WEB-INF/web.xml diff --git a/vaadin-app/HOWTO b/vaadin-app/HOWTO new file mode 100644 index 0000000..1dcc806 --- /dev/null +++ b/vaadin-app/HOWTO @@ -0,0 +1,22 @@ +WAR format (http://tomcat.apache.org/tomcat-7.0-doc/appdev/deployment.html#Standard_Directory_Layout + +*.html, *.jsp, *.js, *.css, *.png, etc. + The HTML and JSP pages, along with other files that must be visible to the client browser for your application. + In larger applications you may choose to divide these files into a subdirectory hierarchy, + but for smaller apps, it is generally much simpler to maintain only a single directory for these files. + +/WEB-INF/web.xml + The Web Application Deployment Descriptor for your application. + This is an XML file describing the servlets and other components that make up your application, + along with any initialization parameters and container-managed security constraints that you want the server to enforce for you. + This file is discussed in more detail in the following subsection. + +/WEB-INF/classes/ + This directory contains any Java class files (and associated resources) required for your application, + including both servlet and non-servlet classes, that are not combined into JAR files. + If your classes are organized into Java packages, you must reflect this in the directory hierarchy under /WEB-INF/classes/. + +/WEB-INF/lib/ + This directory contains JAR files that contain Java class files (and associated resources) required for your application, + such as third party class libraries or JDBC drivers. + diff --git a/vaadin-app/build.properties b/vaadin-app/build.properties new file mode 100644 index 0000000..dbf322a --- /dev/null +++ b/vaadin-app/build.properties @@ -0,0 +1,10 @@ +# Context path to install this application on +app.path=/hello + +# Tomcat 7 installation directory +catalina.home=/usr/share/tomcat7 + +# Manager webapp username and password +manager.username=manager +manager.password=none + diff --git a/vaadin-app/build.xml b/vaadin-app/build.xml new file mode 100644 index 0000000..6da3032 --- /dev/null +++ b/vaadin-app/build.xml @@ -0,0 +1,516 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vaadin-app/build.xml.orig b/vaadin-app/build.xml.orig new file mode 100644 index 0000000..a8e1bce --- /dev/null +++ b/vaadin-app/build.xml.orig @@ -0,0 +1,515 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java new file mode 100644 index 0000000..0a38bee --- /dev/null +++ b/vaadin-app/src/ch/asynk/helloworld/HelloWorldApp.java @@ -0,0 +1,21 @@ +package ch.asynk.helloworld; + +import com.vaadin.Application; +import com.vaadin.ui.Window; +import com.vaadin.ui.Label; + + +public class HelloWorldApp extends Application { + /** + * + */ + private static final long serialVersionUID = 1L; + private Window mainWindow; + @Override + public void init() { + mainWindow = new Window("Hello World Application"); + Label label = new Label("Hello world"); + mainWindow.addComponent(label); + setMainWindow(mainWindow); + } +} diff --git a/vaadin-app/web/META-INF/MANIFEST.MF b/vaadin-app/web/META-INF/MANIFEST.MF new file mode 100644 index 0000000..5e94951 --- /dev/null +++ b/vaadin-app/web/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Class-Path: + diff --git a/vaadin-app/web/WEB-INF/web.xml b/vaadin-app/web/WEB-INF/web.xml new file mode 100644 index 0000000..fca5609 --- /dev/null +++ b/vaadin-app/web/WEB-INF/web.xml @@ -0,0 +1,166 @@ + + + + + + + + + + + My Web Application + + This is version X.X of a vaadin web application. + + + + + + + admin + jeremy@asynk.ch + + The EMAIL address of the administrator to whom questions + and comments about this application should be addressed. + + + + + + Vaadin production mode + productionMode + false + + + + + + + My Application + + This servlet plays the "controller" role in the MVC architecture + used in this application. It is generally mapped to the ".do" + filename extension with a servlet-mapping element, and all form + submits in the app will be submitted to a request URI like + "saveCustomer.do", which will therefore be mapped to this servlet. + + The initialization parameter names for this servlet are the + "servlet path" that will be received by this servlet (after the + filename extension is removed). The corresponding value is the + name of the action class that will be used to process this request. + + com.vaadin.terminal.gwt.server.ApplicationServlet + + + Vaadin application class to start + application + ch.asynk.helloworld.HelloWorldApp + + + 5 + + + + + + + + My Application + /* + + + + + + + + + 30 + + + + -- cgit v1.1-2-g2b99