Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-1208

update generated table.tagx to allow evaluation from converter method

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.0.M1
    • Fix Version/s: 1.1.0.M3
    • Component/s: WEB MVC
    • Labels:
      None

      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>
      
      
      

        Attachments

          Activity

            People

            Assignee:
            sschmidt Stefan Schmidt
            Reporter:
            riacoding Lee Button
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: