Wednesday, July 18, 2007

Initial Seam support for Wicket

Yesterday, I committed initial Seam (2.2.0 beta) support for Wicket. For the moment, it is implemented as a test project: ‘wicket-seam-test’ in the wicket-stuff repository.

Added initial Seam support for Wicket

The project only has support for the @In annotation of Seam, allowing you to inject Seam components in Wicket components, and it has a simple example. Support for other Seam features might be added later if that makes sense.

public class GreetService {
private int count = 0;
public GreetService() {
public String greet() {
return "Hello! I've greeted you " + (++count)
+ " times in this session.";