在下面的JSF Spring集成示例中,我可以看到这些示例在不使用webflow的情况下在spring和JSF之间进行了正常的集成,那么在不使用webflow的情况下将Spring与JSF结合使用时是否会出现任何问题或问题,以及使用的优点是什么webflow 与 JSF,请指教。
链接:
http://www.mkyong.com/jsf2/ jsf-2-0-spring-integration-example/
http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/
in following examples of JSF Spring integration, i can see that the examples makes a normal integration between spring and JSF without using webflow, so is there are any problems or issues when using Spring with JSF without using webflow, and what are the advantages of using webflow with JSF, please advise.
links:
http://www.mkyong.com/jsf2/jsf-2-0-spring-integration-example/
http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/
根据我的经验,是否使用 WebFlow 的决定取决于您的 UI 要求……并且如果 JSF 也在其中,那么实际使用 WebFlow 的唯一原因是您是否有大量的“向导-就像“UI 表单,其管道可以通过 WebFlow(而不是 JSF 面孔上下文导航规则)更优雅地处理。
不同的 JSF 实现之间的痛苦程度也可能有所不同。例如,我们在尝试将 WebFlow 2.0.4 与 IceFaces 1.8.2(基于 JSF 1.2)集成时遇到了麻烦。
有关更多信息(以及如何集成 JSF 和 Spring 的简单说明),请访问 这个 SO线程。
In my experience, the decision whether to use WebFlow is based on your UI requirements....and if JSF is in the box, too, the only reason to actually use WebFlow is if you'd have a vast amount of "wizard-like" UI forms whose plumbing could be more elegantly handled by WebFlow (rather than JSF faces-context navigation rules).
The level of pain could also vary between different JSF implementation. For example, we've had nothing but trouble trying to integrate WebFlow 2.0.4 with IceFaces 1.8.2 (which is based on JSF 1.2).
More on that (together with a straightforward explanation on how to integrate JSF and Spring) can be found on this SO thread.