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
>
>
>
> 2013/5/11 Marco Springer
>
>> Maybe this is too simple but:
>>
>> Did
2013/5/11 Marco Springer
> Maybe this is too simple but:
>
> Did you define this bean in the applicationContext.xml?:
> {possible properties}
>
>
No this is not what I want.
The whole story is ...
I have two maven repositories :
One is *business-layer* , which defines whole business objects
Maybe this is too simple but:
Did you define this bean in the applicationContext.xml?:
{possible properties}
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 them.
In a WebApplication Object:
getCompo
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
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 FactoryBea
see spring's FactoryBean, its an indirect way to create beans.
-igor
On Fri, May 10, 2013 at 12:33 PM, smallufo wrote:
> 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
Not sure exactly what the issue is. You can create beans any time you
want. All you need to do is get an application context object based on a
Spring config file. You can do that in init() or wherever is appropriate
for your app.
From: smallufo
To: users@wicket.apache.org
Date: 05/1