<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Binding javascript nodes to freemarker templates in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/binding-javascript-nodes-to-freemarker-templates/m-p/53894#M32015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is an interesting idea - however it is not directly supported at present as you have hit an area which needs more work. There is automatic type conversion for JavaScript API and for the FreeMarker API - however there is no type conversion between the two APIs!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way to solve this would be to extract an array of NodeRef objects from your JavaScript nodes and pass them to FreeMarker - you can then lookup the nodes in FreeMarker using the node.nodeByReference[…] api.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Mar 2007 11:01:33 GMT</pubDate>
    <dc:creator>kevinr</dc:creator>
    <dc:date>2007-03-05T11:01:33Z</dc:date>
    <item>
      <title>Binding javascript nodes to freemarker templates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/binding-javascript-nodes-to-freemarker-templates/m-p/53893#M32014</link>
      <description>I'm trying to bind an array of nodes (the result of a search) in javascript to a freemarker template via node.processTemplate(template, args) where I've made args["resultset"] = searchResults. However, when it comes through to freemarker it's been converted to a freemarker.SimpleScalar, and is displ</description>
      <pubDate>Wed, 28 Feb 2007 04:58:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/binding-javascript-nodes-to-freemarker-templates/m-p/53893#M32014</guid>
      <dc:creator>marcus</dc:creator>
      <dc:date>2007-02-28T04:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Binding javascript nodes to freemarker templates</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/binding-javascript-nodes-to-freemarker-templates/m-p/53894#M32015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is an interesting idea - however it is not directly supported at present as you have hit an area which needs more work. There is automatic type conversion for JavaScript API and for the FreeMarker API - however there is no type conversion between the two APIs!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One way to solve this would be to extract an array of NodeRef objects from your JavaScript nodes and pass them to FreeMarker - you can then lookup the nodes in FreeMarker using the node.nodeByReference[…] api.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 11:01:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/binding-javascript-nodes-to-freemarker-templates/m-p/53894#M32015</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-03-05T11:01:33Z</dc:date>
    </item>
  </channel>
</rss>

