Uploaded image for project: 'Hippo Plugins'
  1. Hippo Plugins
  2. HIPPLUG-1409

Taxonomy: TaxonomyTag incompatible with Freemarker

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: taxonomy-3.1.0
    • Fix Version/s: None
    • Component/s: Taxonomy
    • Labels:
      None
    • Similar issues:

      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

            • Assignee:
              Unassigned
              Reporter:
              nvankampenhout Niels van Kampenhout
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: