Inspired by the enthousiastic reports of other people I decided to have better look at Wicket, the upcoming MVC framework.
Wicket is great for separation of code and gui. A web page is made out of a class and an html page, no need for jsp’s! For more information have a look at the site: http://wicket.sourceforge.net/Features.html
I decided that the best way to get my first Wicket experience was to install the Maven archetype project. And well, after a few minutes I was looking at the first Wicket page that was served from within my own Eclipse IDE!
If you have Maven 2 and Eclipse installed, all you need to do is:
1. go to the command line
2. type: mvn archetype:generate
3. choose the wicket archetype (at this time, it is nr. 36)
4. fill in the options (choose ‘wicket’ as artefactid)
5. change to the ‘wicket’ directory that now has been created
6. create an eclipse project file by typing ‘mvn eclipse:eclipse’
7. start Eclipse
8. import the Wicket project by selecting ‘import existing project’ and the ‘wicket’ directory as source
9. run the ‘Start’ class as a Java app
10. type in the url http://localhost:8080/wicket/ and there you go!
The start class is not really part of the Wicket application, all it does is start an embedded Jetty server that runs the demo app.