Spring webflow 是一个好的 portlet 技术选择吗?

发布于 2024-12-27 12:33:18 字数 303 浏览 0 评论 0原文

我正在开发一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

流绪微梦 2025-01-03 12:33:18

Spring MVC 支持 portlet,webflow 也支持。我们在 Spring 早期有一个 AbstractWizardFormController,用于以逐步方法处理数据,该方法已被 Web 流取代。它们在每个屏幕中存储一个 Flow Id,决定流的移动。如果您有以下场景,请考虑 webflow

There is a clear start and an end point.
The user must go through a set of screens in a specific order.
The changes are not finalized until the last step.
Once complete it shouldn't be possible to repeat a transaction accidentally.

根据文档此处。它确实支持 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

There is a clear start and an end point.
The user must go through a set of screens in a specific order.
The changes are not finalized until the last step.
Once complete it shouldn't be possible to repeat a transaction accidentally.

As per the documentation here . It does support portlets. The portlet intergration reference is here . Check here for spring mvc integration .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文