Create a Wicket Quickstart

With the quickstart you’ll be up and running in seconds

Use the following wizard to generate a Quick Start Project using Maven. Paste the generated command line into a shell (DOS prompt or unix shell) and create a project with Wicket in a jiffy.

Before you start

The Quick Start Wizard uses Apache Maven to make it really fast to get started. You should have Maven installed and working before you can use the Quick Start wizard.

5 small steps to a web application

Use the following steps to quickly generate a project to get you started:

  1. Fill in the Maven coordinates for your project in the wizard and select the appropriate Wicket version
  2. Copy the generated commandline to your clipboard and paste it in a terminal (or a DOS box)
  3. Open the project in your IDE of choice
  4. Start the Start class in the src/test/java folder
  5. Open your browser to http://localhost:8080

And you’re done!

Quick Start Wizard

Fill in your project details in the wizard below and copy the generated command line to your clipboard.


With the generated command line on your clipboard open up a terminal window (or DOS box) and navigate to where you want the project to be generated (e.g. for Eclipse users this would be your workspace folder). Paste the command line into your terminal window and press «enter» to execute the command.

Result of the Maven command

Executing the Maven command line will result the following directory structure:

.\myproject
    |   pom.xml
    |
    \---src
        +---main
        |   +---java
        |   |   \---com
        |   |       \---mycompany
        |   |               HomePage.html
        |   |               HomePage.java
        |   |               WicketApplication.java
        |   |
        |   +---resources
        |   |       log4j.properties
        |   |
        |   \---webapp
        |       \---WEB-INF
        |               web.xml
        |
        \---test
            \---java
                \---com
                    \---mycompany
                            Start.java

It might be different depending on your settings (and version of Wicket), but this is basically the standard layout for web projects.

Import the Quick Start in your IDE

The Wicket Quick Start uses Apache Maven to make it really fast to get started. You should have Maven installed and working before you can use the Quick Start wizard.

Eclipse

For Eclipse you should generate the Quick Start project within your workspace folder. You also need to ensure that you have m2eclipse installed in order to import the project. To import the project you select “Import existing project” from the File menu, and select the folder of your generated Quick Start project.

IntelliJ IDEA

IntelliJ IDEA has native support for Maven projects. You just point the open project dialog to the place where you generated the Quick Start project and open the pom.xml file. IDEA will then open the project as any other Java project.

Netbeans

Netbeans has native support for Maven projects. You just point the open project dialog to the place where you generated the Quick Start project and open the pom.xml file. Netbeans will then open the project as any other Java project.