简体   繁体   English

带有JSF2的Spring3 Portlet

[英]Spring3 portlets with JSF2

Did anybody ever used the new Spring3 with JSF2 and portlets (JSR286) ? 是否有人曾经将新的Spring3与JSF2和Portlet(JSR286)一起使用?

I used JSF1.2 with portlets (JSR168) we had some problems with stuff like file uploading, portlet intercommunication and other stuff. 我将JSF1.2与portlet(JSR168)一起使用时,我们在文件上传,portlet互通等问题上遇到了一些问题。

There aren't a lot of resources online on this topic. 在线上没有太多关于此主题的资源。

The Portlets in Action book covers JSR286, and has a couple of chapters on Spring3, but there's no mention of JSF2 sorry. Portlet in Action》一书涵盖了JSR286,并在Spring3上有几章内容,但是没有提及JSF2。

Much of JSR286 was done to address the problems in JSR168 with regards to file uploading and portlet communication. 为了解决JSR168中有关文件上传和Portlet通信的问题,做了很多JSR286。 I would recommend dropping any JSR168 support in favour of JSR286 if you are able to. 如果可以的话,我建议放弃对JSR286的支持,而放弃对JSR168的支持。

UPDATE 1: Have you looked at the JBoss Portlet Bridge ? 更新1:您是否看过JBoss Portlet Bridge

Using Spring 3 with JSF2 is pretty straightforward. 将Spring 3与JSF2结合使用非常简单。 You can use, for example, Sring Roo for building working Spring 3 configuration and then just plug in configuration required by JSF2. 例如,您可以使用Sring Roo构建有效的Spring 3配置,然后仅插入JSF2所需的配置。

However, currently there is no decent portlet bridge implementation that supports native JSF2. 但是,目前尚无支持本机JSF2的不错的Portlet桥实现。 This pretty much undermines the whole purpose of using JSF2 with portlets, at least for now. 至少到目前为止,这几乎破坏了将JSF2与portlet一起使用的整个目的。

There is a small tech preview of JBoss Portletbridge (version 3.0.0, check this link ) and for example Portletfaces project for Liferay Portal. 有一个小型的JBoss Portletbridge技术预览版(版本3.0.0,请检查此链接 ),例如Liferay Portal的Portletfaces项目。 However, both of these are in their early alpha phases, so they're not an option for production usage. 但是,这两个都处于早期的Alpha阶段,因此它们不是生产用途的选择。

我使用http://www.portletfaces.org在Spring 3上开发JSF-2.0 portlet取得了成功。

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

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