FANDOM


Create the Base Vaadin Project in Eclipse

  • Start Eclipse 3.5.1 JEE from the shortcut
  • From the File | New menu, select Project... and select the Vaadin | Vaadin Project Wizard
  • In the remaining steps of the New Vaadin Project wizard, accept the defaults with the following exceptions:
    • Project Name: GroupMinderVaadin
    • Target runtime: Apache Tomcat v6.0
    • Deployment configuration: Servlet (default)
    • Vaadin version: 6.2.2 (Click [Download...] to select version and download JAR)

Modify the Base Vaadin Project

Use the following options for the refactorings in this section:

Rename subpackages

Update textual occurrances in comments and strings

Update fully qualified names in non-Java text files

  • Refactor the default project source code:
    • Rename class name GroupmindervaadinApplication to GroupMinderVaadinApplication
    • Quick Fix to add generated serialVersionUID to GroupMinderVaadinApplication class
    • Quick Fix to Classpath entry ...gwt-dev-windows.jar to Exclude the associated raw claspath...
    • Quick Fix to Classpath entry ...gwt-user.jar to Exclude the associated raw claspath...
    • Rename package com.example.groupmindervaadin to com.groupminder.ui.vaadin
  • Modify the WebContent/WEB-INF/web.xml file:
  <servlet>
  	<servlet-name>GroupMinder</servlet-name>
  	<servlet-class>
  	com.vaadin.terminal.gwt.server.ApplicationServlet</servlet-class>
  	<init-param>
  		<description>
  		Group Minder - An example J2EE application using Vaadin</description>
  		<param-name>application</param-name>
  		<param-value>com.groupminder.ui.vaadin.GroupMinderVaadinApplication</param-value>
  	</init-param>
  </servlet>
  <servlet-mapping>
  	<servlet-name>GroupMinder</servlet-name>
  	<url-pattern>/groupminder/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>GroupMinder</servlet-name>
    <url-pattern>/VAADIN/*</url-pattern>
  </servlet-mapping>

Debug the Vaadin Project in Eclipse

  • Start Eclipse 3.5.1 JEE from the shortcut
  • Right-click the GroupMinderVaadin project in Project Explorer and select Debug As | Debug on Server
  • On the Debug on Server dialog, select the defaults except for:
    • Check Always use this server when running this project

Create the Source Files

  • Create the file myfile.txt

References

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.