简体   繁体   English

Wicket 1.4 EJB支持

[英]Wicket 1.4 EJB Support

I tried implementing the JavaEE Inject jar from Wicket Stuff. 我尝试从Wicket Stuff实现JavaEE Inject jar。 (glassfish v3, wicket 1.4) - however, the code given in the tutorial doesn't work (glassfish v3,wicket 1.4)-但是,本教程中给出的代码不起作用

method addComponentInstantiationListener in class org.apache.wicket.Application cannot be applied to given types 类org.apache.wicket.Application中的方法addComponentInstantiationListener不能应用于给定的类型
required: org.apache.wicket.application.IComponentInstantiationListener found: org.wicketstuff.javaee.injection.JavaEEComponentInjector 必需:org.apache.wicket.application.IComponentInstantiationListener找到:org.wicketstuff.javaee.injection.JavaEEComponentInjector

looks to me like the API has changed. 看起来像API已经改变了。 The JIRA link inside 里面的JIRA链接

http://wicketstuff.org/confluence/display/STUFFWIKI/JavaEE+Inject 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? 另一个简短的问题:是否可以直接使用实体bean填充ListView? I'd like to avoid too many proxy classes. 我想避免太多的代理类。

Thanks in advance 提前致谢

Yes, you can inject a ListView with entity beans. 是的,您可以使用实体bean注入ListView。 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. 为此,您应该为迭代器创建IDataProvider实现(或其子接口之一),并用LoadableDetachableModel封装实体,以便可以重新加载它们,而不必将其作为会话的一部分进行序列化。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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