Details
Description
The snippet below shows the code from the generated table.tagx file with the c:out line commented out. The spring:eval substitution allows spring to use converter method to format the text for the column. Still need to figure a way to allow use of max length constraints.
table.tagx
<c:forTokens items="${columnProperties}" delims="," var="column" varStatus="num"> <c:set var="columnMaxLength" value="${lengths[num.count - 1]}" scope="request"/> <td> <!-- <c:out value="${columnMaxLength lt 0 ? item[column] : fn:substring(item[column],0,columnMaxLength)}"/>--> <spring:eval expression="item[column]" /> </td> </c:forTokens>