Re: problems with spring integration

2011-04-01 Thread hrbaer
This works like a charm - thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/problems-with-spring-integration-tp3416484p3421269.html Sent from the Users forum mailing list archive at Nabble.com.

Re: problems with spring integration

2011-03-30 Thread hrbaer
I added wicket-spring-annot to my project, removed all of the previous spring code and just added getComponentInstantiationListeners().add(new SpringComponentInjector(this)); to the init method of my xxxApplication class. But now I'm getting an error: The type

Re: problems with spring integration

2011-03-30 Thread James Carman
Are you using maven? If so, you should have all the dependencies you need. If not, you'll need wicket-ioc.jar On Wed, Mar 30, 2011 at 11:23 AM, hrbaer herber.m...@gmail.com wrote: I added wicket-spring-annot to my project, removed all of the previous spring code and just added

Re: problems with spring integration

2011-03-30 Thread hrbaer
No, I don't. So adding wicket-ioc.jar to my project solves this problem. But because of the fact I don't have a default constructor I get an exception. My constructor looks like public Test( PageParameters params ){ ... }. -- View this message in context:

Re: problems with spring integration

2011-03-30 Thread hrbaer
Just to summarize my status: I've added addComponentInstantiationListener( new SpringComponentInjector(this) ); to the init method of my xxxApplication file, I added to my applicationContext and withing my WebPage I have this code: public class Test extends WebPage { @SpringBean

Re: problems with spring integration

2011-03-30 Thread moèz ben rhouma
Hi, For this error: *java.lang.ClassNotFoundException: net.sf.cglib.proxy.Callback (...)* you can add the cglib-nodep library . I think, this link ( http://javajeedevelopment.blogspot.com/2011/03/integrating-spring-security-3-with.html) can help you. Thanks 2011/3/30 hrbaer

Re: problems with spring integration

2011-03-30 Thread jcgarciam
Hi, I believe the problem to your [Could not instantiate bean class [de.Test]: No default constructor found;] is that your are setting up a Wicket Page (without default constructor) as a managed bean in Spring, when what you actually mean was to define your [UserService] as the Spring bean.

Re: problems with spring integration

2011-03-29 Thread Michael O'Cleirigh
When you use spring there needs to be a wicket application bean defined in your applicationContext.xml, I believe the default name is wicketApplication. So you can instruct it to be autowired by type and then use the @Autowired annotation to get services injected into the application.