Thursday, 20 September 2012

Apache Wicket How to start ?


Apache Wicket

Apache Wicket is a open source lightweight component-based web application framework for the Java programming language conceptually similar to JavaServer Faces and Tapestry.

Softwares Used

  • Eclipse Juno
  • Apache tomcat 6.0
  • Java 7
  • Maven with Wicket quickstart 

1. Create a Maven Project in eclipse.

File->New->Other->Maven->Maven Project

2. Select Wicket quickstart artifact

Or Use the below command to generate the archetype
mvn archetype:generate -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart -DarchetypeVersion=7.2.0 -DgroupId=com.mycompany -DartifactId=myproject -DarchetypeRepository= -DinteractiveMode=false

3. Maven Project created with below structure.

4. Deploy this project in Tomcat

Right click on the project->Run As->Tomcat Server  Or Run the (Which is using Jetty server)

5.  output