你的位置:首页 > 软件开发 > ASP.net > SPRING + THYMELEAF 配置

SPRING + THYMELEAF 配置

发布时间:2015-05-19 20:00:23
1、使用的是Spring EL而不是Ognl。2、访问上下文的Bean用${@myBean.doSomething()}3、th:field,th:errors,th:errorclass用于form processing。4、要采用SpringTemplateEngine。5、 ...

1、使用的是Spring EL而不是Ognl。<bean >

13、radios:14、dropdownlist or select。15、预处理:<select th:field="*{rows[__${rowStat.index}__].variety}">而不使用<select th:field="*{rows[rowStat.index].variety}">,因为spring el不会计算数组索引中的变量或者表达式。<input type="text" th:field="*{datePlanted}" /><input type="text" th:field="*{datePlanted}" th:error /><ul th:if="${#fields.hasErrors('*')}"><div th:if="${#fields.hasErrors('${myForm}')}">...</div><form th:object="${myForm}">@RequestMapping("/showContentPart")

原标题:SPRING + THYMELEAF 配置

关键词:Spring

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录