Uploaded image for project: 'Apache Freemarker'
  1. Apache Freemarker
  2. FREEMARKER-87

<#list map as key,value> should always iterating on map entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Workaround
    • 2.3.27-incubating
    • None
    • engine
    • None

    Description

      I'm using struts2, use FriendlyMapModel instead of default MapModel, It works fine except map have key such as "size", the value will be unexpected SimpleMethodModel, I think freemarker should always use entry value for directive <#list map as key,value>, not matter how MapModel works, MapModel should only affect map.size and map.get('size').
      I attached a test case.

       

      Attachments

        1. MapIteratingTest.java
          3 kB
          Yanming Zhou

        Activity

          People

            Unassigned Unassigned
            quaff Yanming Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: