需要Spring 3 JSF 2集成示例 [英] Spring 3 JSF 2 integration example needed

查看:139
本文介绍了需要Spring 3 JSF 2集成示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Spring 3,Web Flow 2,JSF 2整合到
,我需要你推荐一个好的教程或示例,提前谢谢。

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.

更新:

我使用了以下示例,它可以正常使用我没有问题:

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 /

但它不使用spring web flow和我不知道这种方法是否有任何问题。

but it doesn't use spring web flow and i don't know if there are any problems with this approach.

推荐答案

我最近使用Spring MVC 3进行了模板设置Spring控制器和JSF 2作为视图生成器。

I recently did a template setup of Spring MVC 3 using Spring controllers and JSF 2 as the view generator.

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

免责声明:我自己的博客。

DISCLAIMER: My own blog.

对于大部分来说,这是非常直接的。如果你想使用Spring MVC控制器的JSF 2表单,那么它变得棘手。我犹豫不决,如果这种情况有效,因为JSF在后台进行了大量的状态管理,并不容易转换为Spring。

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. 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 2的组件和布局/ rendring相关的部分,它应该让你到那里。

If all you are after is the component and layout/rendring-related parts of JSF 2, it should get you there.

这篇关于需要Spring 3 JSF 2集成示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆