简体   繁体   English

需要Spring 3 JSF 2集成示例

[英]Spring 3 JSF 2 integration example needed

i want to Integrate Spring 3, Web Flow 2, JSF 2 together and i need you to recommend me a good tutorial or example, thanks in advance. 我想整合Spring 3,Web Flow 2,JSF 2,我需要你向我推荐一个好的教程或示例,在此先感谢。

UPDATE: 更新:

i used following example, and it worked fine with me with no problems: 我使用了以下示例,它没有任何问题与我一起工作正常:

http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/ http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/

but it doesn't use spring web flow and i don't know if there are any problems with this approach. 但它不使用弹簧网络流程,我不知道这种方法是否有任何问题。

I recently did a template setup of Spring MVC 3 using Spring controllers and JSF 2 as the view generator. 我最近使用Spring控制器和JSF 2作为视图生成器进行了Spring MVC 3的模板设置。

http://papweb.wordpress.com/2011/07/29/spring-mvc-3-jsf-2-with-maven-2-and-tomcat/ http://papweb.wordpress.com/2011/07/29/spring-mvc-3-jsf-2-with-maven-2-and-tomcat/

DISCLAIMER: My own blog. 免责声明:我自己的博客。

It's pretty straight forward for the most parts. 对于大部分来说,这是非常直接的。 Where it gets tricky is if you want to use JSF 2 forms with Spring MVC controllers. 如果您想使用Spring MVC控制器的JSF 2表单,那么它变得棘手。 I'm hesitant to say if that even works as JSF has a lot of state-management going on in the background that is not easily translated to Spring. 我犹豫不决,如果这种情况有效,因为JSF在背景中进行了大量的状态管理,而这很容易转换为Spring。

If all you are after is the component and layout/rendring-related parts of JSF 2, it should get you there. 如果你所追求的只是JSF 2的组件和布局/渲染相关部分,它应该会让你到那里。

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

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