简体   繁体   English

有没有比JSTL和Spring MVC更改进的声明式视图技术

[英]Is there a more improved declarative view technology than JSTL with Spring MVC

I wanted to use JSTL and JSP tags with spring mvc but it seems to lack more declarative constructs.我想在 spring mvc 中使用 JSTL 和 JSP 标签,但它似乎缺乏更多的声明性构造。 Eg it would be nice to just bind a 'list' to a type of listview and that get rendered as a list of items.例如,将“列表”绑定到一种列表视图并将其呈现为项目列表会很好。 I believe spring, form elements and other widgets are OK but using JSTL seems lacking because it is very procedural.我相信 spring、表单元素和其他小部件都可以,但使用 JSTL 似乎缺乏,因为它非常程序化。 For example foreach, if constructs leads to sloppy code.例如foreach,如果构造导致代码马虎。

Also, it would be nice if there is view add-on with Spring that might even have default styling, listview functions like swapping style between odd and even.此外,如果 Spring 有视图附加组件甚至可能具有默认样式、列表视图功能(例如在奇数和偶数之间交换样式),那就太好了。 Basic pagination support?基本分页支持?

We won't be able to use JSF.我们将无法使用 JSF。

使用 Spring 和 JSF 以及 PrimeFaces 提供了 UI 支持,正如我在最初的问题中所问的那样,包括大量的 ajax 小部件和其他功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM