Spring webflow 是一个好的 portlet 技术选择吗?
我正在开发一个 portlet 应用程序,看起来“主”portlet 将非常复杂,其中包含一些向导类型的功能。我从普通的 Spring MVC 开始,但很明显,随着时间的推移,后备控制器将变得非常大且笨重(在我看来)。我喜欢在应用程序的生命周期中保持我的类小而静态。
我正在考虑使用 Spring Web flow,但是很多关于它的文档似乎都是 08 年的 - 我的问题是,对于模块化 portlet 架构来说,这仍然是一个好的技术选择吗?有没有办法在同一 portlet/模式中的某些用例中重定向到标准 MVC?即在有意义的地方使用 SWF,但在其他用例中使用 MVC..?
I am working on a porlet app and it looks like the "main" portlet will be pretty complex, with some wizard-type functionality in it. I started with plain Spring MVC but it's clear that the backing controller will become very big and unwieldy over time (to my eye). I like to keep my classes small and static through the lifetime of an app.
I was considering the use of Spring Web flow, but a lot of the documentation on it seems to be from 08-timeframe - my question is, is this still a good technology choice for a modular portlet architecture? Is there a way to redirect to standard MVC in certain use-cases within the same portlet/mode..? I.e. to use SWF where it makes sense, but use MVC for other use-cases..?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Spring MVC 支持 portlet,webflow 也支持。我们在 Spring 早期有一个 AbstractWizardFormController,用于以逐步方法处理数据,该方法已被 Web 流取代。它们在每个屏幕中存储一个 Flow Id,决定流的移动。如果您有以下场景,请考虑 webflow
根据文档此处。它确实支持 portlet。 portlet 集成参考位于此处。请在此处查看 Spring MVC 集成 。
Spring MVC supports portlets and so does webflow . We had an AbstractWizardFormController earlier in Spring for process ing data in a Step-By-Step approach which was replaces by Web flow . These store a Flow Id in every screen which decides the movement of the flow . Consider webflow if you have the following scenarios
As per the documentation here . It does support portlets. The portlet intergration reference is here . Check here for spring mvc integration .