弹簧面没有弹簧流动 [英] spring faces without spring flow

查看:94
本文介绍了弹簧面没有弹簧流动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开始一个新的JSF(2)项目。我意识到纯粹的JSF有一些限制,我打算在春天放弃。 JSF在春天是一种相对较新的方法(在stackoverflow中甚至没有标签spring-faces :-)),jsp是经典的方式。
我需要对技术堆栈进行最佳调整。

1)我是否也需要使用弹簧网流?是
2)仅使用弹簧面是否可行(这似乎是网络流程的一部分) + spring mvc + JPA?

3)这样的配置有什么好的例子吗?

I'm starting a new JSF (2) project. I realize that pure JSF has some limitation and I'm planning to drop in spring. JSF is a relatively new approach in spring (there is not even a tag spring-faces in stackoverflow :-) ), jsp being the classic way.
I need the best available adjustment of the technology stack.
1) do i need to use spring web flow too?
2) is it viable to use just spring faces (that seems to come as a part of web flow) + spring mvc+ JPA?
3) is there any good example of such a configuration?

推荐答案

我正在使用JSF 2和Spring 3进行依赖注入等。

I'm using JSF 2 together with Spring 3 for Dependency Injection etc.

我不熟悉Web Flow而且我不使用它。

I'm not familiar with Web Flow and I don't use it.

faces-config.xml 中,您可以注册Spring SpringBeanFacesELResolver

In your faces-config.xml you can register the Spring SpringBeanFacesELResolver.

<el-resolver>
    org.springframework.web.jsf.el.SpringBeanFacesELResolver
</el-resolver>

然后你可以在你的JSF代码中访问Spring托管bean!

Then you can access Spring managed beans in your JSF code!

看一下Spring 文档 API文档

Have a look at the Spring documentation and the API docs.

这篇关于弹簧面没有弹簧流动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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