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.
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
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
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:
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
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
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.
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.