Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 2.0
-
Component/s: Web Component Extension
-
Labels:None
-
Number of attachments :
Description
As described by Teemu:
I am not a Wicket expert but there is a page about Spring injection for Wicket:
https://cwiki.apache.org/WICKET/spring.html
I think that the same approach might work for SCA and Fabric3
injection as well. Just replace @SpringBean with @Reference and create
the necessary Wicket thingies.
It actually says on that page "This technology can also be used to
inject non-spring dependencies like JNDI or EJB3 beans. All it takes
is a simple implementation of IFieldValueFactory and
IProxyTargetLocator" (in section Beyond Spring).
I guess it would need something like this in the application class and
would not be fully IoC with just an annotation (because of need for
proxies because of page serialization):
class MyApplication extends WebApplication {
public void init()
}
Source code of that Spring injection can be found here:
https://fisheye6.atlassian.com/browse/wicket/trunk/wicket-spring/src/main/java/org/apache/wicket/spring/
I hope this helps.
Best wishes,
Teemu