Thanks to everybody for help.
Paul Bors wrote > As far as I can tell you the Spring native annotations work within the > implementation of a bean you already injected in your wicket component. > First crate a service for yourself and inject it where needed in Wicket > via > @SpringBean. Then inside your service feel free to inject other Spring > dependencies via Spring's native annotations. It works. But I thought, that I can set something (something like a scanning all classes) in web.xml or springContext.xml file to scan for all @Autowired annotations and it will be autowired in all classes. So why I have to use "@SpringBean ClsDb clsDb;" in my HomePage.class and then I can use @Autowired in CldDb class. Why I cannon use only "new ClsDb();"? There is no way how to autowired all beans? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-autowired-annotation-tp4661529p4661583.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org