Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-13 Thread smallufo
I solve this problem by introducing another spring's xml inside wicket's repository, which I didn't want to do this at first. (I was looking for a programmatic way , but it seems not so easy... ) 2013/5/11 smallufo small...@gmail.com 2013/5/11 Marco Springer ma...@glitchbox.nl Maybe this

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-11 Thread Marco Springer
Maybe this is too simple but: Did you define this bean in the applicationContext.xml?: bean id=myobj class={impl. class}{possible properties}/bean And usually when I'm dealing with are objects that aren't wicket components, like models or the WebApplication object itself, I have to inject

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-11 Thread smallufo
2013/5/11 Marco Springer ma...@glitchbox.nl Maybe this is too simple but: Did you define this bean in the applicationContext.xml?: bean id=myobj class={impl. class}{possible properties}/bean No this is not what I want. The whole story is ... I have two maven repositories : One is

[wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread smallufo
Hi , I wonder if it possible to programmatically create / register a spring bean in wicket? maybe in Application.init() ... Most documents about spring are making use of existent beans , and inject to WebPage or Panel via @SpringBean , and it indeed works well. But my interface implementations

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread Richard W. Adams
@wicket.apache.org Date: 05/10/2013 02:34 PM Subject:[wicket 6] Create/Register Spring Bean in wicket ? Hi , I wonder if it possible to programmatically create / register a spring bean in wicket? maybe in Application.init() ... Most documents about spring are making use of existent beans

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread Igor Vaynberg
see spring's FactoryBean, its an indirect way to create beans. -igor On Fri, May 10, 2013 at 12:33 PM, smallufo small...@gmail.com wrote: Hi , I wonder if it possible to programmatically create / register a spring bean in wicket? maybe in Application.init() ... Most documents about spring

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread smallufo
Hi Is there any code example to create beans and register to spring ? I can get ApplicationContext by WebApplicationContextUtils.getRequiredWebApplicationContext(getServletContext()); but there is no setter or register or createBean methods within... Or use of factory bean ? I searched

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread smallufo
I try to do this in init() : ctx.getAutowireCapableBeanFactory().configureBean(obj, myobj); or ctx.getAutowireCapableBeanFactory().applyBeanPostProcessorsAfterInitialization(obj, myobj); or ctx.getAutowireCapableBeanFactory().applyBeanPostProcessorsBeforeInitialization(obj, myobj); But in a