Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-5191

template/simple/textarea.ftl not rendering parameters correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0.0
    • 6.0.3
    • Core Tags
    • None

    Description

      The "simple" textarea.ftl (I haven't checked the other templates) does not have the ending ">" in the correct location. As a result, maxlength and minlength are displayed within the textarea editor.

       

      Current

      <#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
      <#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
      <#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
      ><#rt/>    <#--  !! WRONG LOCATION !! -->
      <#if parameters.nameValue??>
      <@s.property value="parameters.nameValue"/><#t/>
      </#if>
      <#if parameters.maxlength?has_content>
      maxlength="${parameters.maxlength}"<#rt/>
      </#if>
      <#if parameters.minlength?has_content>
      minlength="${parameters.minlength}"<#rt/>
      </#if>
      </textarea> 

       

      Should be 

      <#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
      <#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
      <#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
      <#if parameters.nameValue??>
      <@s.property value="parameters.nameValue"/><#t/>
      </#if>
      <#if parameters.maxlength?has_content>
      maxlength="${parameters.maxlength}"<#rt/>
      </#if>
      <#if parameters.minlength?has_content>
      minlength="${parameters.minlength}"<#rt/>
      </#if>
      ><#rt/> <#-- !! CORRECT LOCATION !! -->
      </textarea>

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              burtonrhodes Burton Rhodes
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h