Wicket and Spring
Wicket makes it very easy to integrate directly with the Spring Framework.
In any Component (Page, Panel, etc) to include a Spring bean you would do:
@SpringBean
private MyBean myBean;
In your application-specific Application class you would do the following:
import org.apache.wicket.spring.injection.annot.SpringComponentInjector;
...
@Override
protected void init {
addComponentInstantiationListener(new SpringComponentInjector(this));
...
}
If you're using Maven for your build management, you would pull in these dependencies assuming wicket 1.3:
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-spring</artifactId>
<version>${wicket.version}</version>
</dependency>
<dependency>
<groupId>org.apache.wicket</groupId>
<artifactId>wicket-spring-annot</artifactId>
<version>${wicket.version}</version>
</dependency>