Closed schatten4810 closed 9 years ago
Conversion from taglib for extend thymeleaf.
Attribute Processors
Prefix of attribute name is "la"
Write name, value and text.
<input type="text" la:property="memberName"/> <textarea la:property="description"></textarea>
Write value and text.
<select la:property="memberStatus"> <option la:optionCls="'MemberStatus'"></option> </select>
Help write name at list property.
<div la:foreach="${friends}"> <input type="text" la:property="memberName"/> </div>
Expression Utility
Utility of using HandyDate for date.
<span th:text="${#handydate.format(member.birthdate)}">20XX-XX-XX</span>
This example is same to optionCls.
<select name="memberStatus"> <option th:each="def : ${#cdef.values('MemberStatus')}" th:value="${#cdef.code(def)}" th:text="${#cdef.alias(def)}" th:checked="${def} == ${memberStatus}"></option> </select>
Wrapper for ActionMessages handling by list.
<ul th:unless="${errors.empty}" style="display: none" th:style="'color : red;'"> <li th:each="error : ${errors.allMessages}" th:text="${error.isResource()} ? #{${error.key}(${error.values})} : ${error.key}"></li> </ul>
Conversion from taglib for extend thymeleaf.
Attribute Processors
Prefix of attribute name is "la"
Write name, value and text.
Write value and text.
Help write name at list property.
Expression Utility
Utility of using HandyDate for date.
Wrapper for ActionMessages handling by list.