简体   繁体   中英

Wicket 1.4 EJB Support

I tried implementing the JavaEE Inject jar from Wicket Stuff. (glassfish v3, wicket 1.4) - however, the code given in the tutorial doesn't work

method addComponentInstantiationListener in class org.apache.wicket.Application cannot be applied to given types
required: org.apache.wicket.application.IComponentInstantiationListener found: org.wicketstuff.javaee.injection.JavaEEComponentInjector

looks to me like the API has changed. The JIRA link inside

http://wicketstuff.org/confluence/display/STUFFWIKI/JavaEE+Inject

and the Repository link are both broken. Is it still maintained?

Another short question: Is it possible to populate ListView directly with entity beans? I'd like to avoid too many proxy classes.

Thanks in advance

Yes, you can inject a ListView with entity beans. You should do so by creating an implementation of IDataProvider (or one of it's sub-interfaces) for the iterator and have it wrap the entities with LoadableDetachableModel so they can be reloaded instead of serialized as a part of the session.

弄清楚:我没想到1.4.13和1.4.14之间存在差异,但显然API在那里发生了显着变化。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM