Some time ago I was asked to do some research about integrating Wicket with conversation scope from Context and Dependency Injection (CDI) from JEE6 specification. And as not everything was clear and easy to run, I decided to post my findings in this blog.
Project setup
To make things easier we will base on existing example web application showing how to integrate Wicket with Weld (CDI) from project Seam-Wicket (formerly named weld-wicket). So first let’s pull latest version of Seam-Wicket project from Git:
git clone git://github.com/seam/wicket.git cd wicket mvn clean install
and in examples directory there is numberguess Maven project. Just import it into your favourite IDE and execute
mvn install jetty:run -P jetty

