I'm working on a project with Spring/Wicket integration.

I have most of the Spring autowire stuff working ...

My @Repository(s) are successfully autowires to my @Service(s). In SpringMVC
speak then, the @Service would autowire to the *...@controller*. But of course,
I am using wicket, not Spring MVC. Per the wicket/spring doc
page<http://cwiki.apache.org/WICKET/spring.html>,
which describes the *...@springbean* annotation, as opposed to the 
*...@controller
* annotation, in my pages. Unfortunately, I get an error and the stack trace
includes:

Caused by: java.lang.IllegalStateException: bean of type
[org.effectiveprogramming.effprog.service.PostService] not found

Is this expected? Before deep diving I'm curious to confirm that
spring-wicket integration is definitely supposed to work with Spring
autowiring. Thoughts?

Thanks.

-Luther


--------

@Repository
public class PostDaoImpl extends PostDao
{
...
}

--------

@Service
public class PostServiceImpl implements PostService
{
...
    @Autowired
    public void setPostDao(final PostDao postDao)
    {
        this.postDao = postDao;
    }
}

--------

public class HomePage extends BasicLayout
{
    @SpringBean
    private PostService postService;

Reply via email to