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 <[email protected]>
To:     [email protected]
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" , and 
inject
to WebPage or Panel via @SpringBean , and it indeed works well.

But my interface implementations are depend on wicket-component ,
such as getting absolute URL of a page or a DynamicImageResource

So these beans should be initialized and register to Spring in init()
(correct me if I am wrong)

Any way to achieve this ?

Thanks.

(I am using wicket 6.7 )



**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**

Reply via email to