Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-13025

Taxonomy: TaxonomyTag incompatible with Freemarker

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Won't Do
    • 11.1.0
    • None
    • plugins, plugins-taxonomy
    • None

    Description

      Taxonomy keys are stored on documents in a multiple string property hippotaxonomy:keys.

      The Beanwriter generated the following (correct, AFAICS) getter method:

      @HippoEssentialsGenerated(internalName = "hippotaxonomy:keys")
      public String[] getKeys() {
          return getProperty("hippotaxonomy:keys");
      }
      

      In a JSP template, the following works:

      <%@ taglib uri="http://www.hippoecm.org/jsp/hst/taxonomy" prefix='tax'%>
      
      <tax:categories var="list" keys="${document.keys}" />
      

      But in Freemarker template, the equivalent:

      <#assign tax=JspTaglibs["http://www.hippoecm.org/jsp/hst/taxonomy"] >
      
      <@tax.categories var="list" keys=document.keys />
      

      gives the following error:

      [INFO] [talledLocalContainer] FreeMarker template error:
      [INFO] [talledLocalContainer] Failed to set JSP tag parameter "keys" (declared
        type: String[], actual value's type: f.e.b.SequenceAdapter). See cause exception
        for the more specific cause...
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            nvankampenhout Niels van Kampenhout
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: