<?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 How to call a Bean from Freemarker template in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-a-bean-from-freemarker-template/m-p/20128#M9354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We can call the action listeners such as the following one &lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;actionListener="#{ClipboardBean.copyNode}"&lt;/STRONG&gt;&lt;/EM&gt;&lt;SPAN&gt;from browse.jsp, preview-space.jsp etc jsp files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on a web-client where I need to call "actionListener="#{ClipboardBean.copyNode}" kind of bean method from the freemarker template by supplying required parameter such as Node Id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I call a bean method from freemarker template?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jun 2006 00:10:21 GMT</pubDate>
    <dc:creator>munwar</dc:creator>
    <dc:date>2006-06-05T00:10:21Z</dc:date>
    <item>
      <title>How to call a Bean from Freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-a-bean-from-freemarker-template/m-p/20128#M9354</link>
      <description>We can call the action listeners such as the following one actionListener="#{ClipboardBean.copyNode}"from browse.jsp, preview-space.jsp etc jsp files.I am working on a web-client where I need to call "actionListener="#{ClipboardBean.copyNode}" kind of bean method from the freemarker template by supp</description>
      <pubDate>Mon, 05 Jun 2006 00:10:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-call-a-bean-from-freemarker-template/m-p/20128#M9354</guid>
      <dc:creator>munwar</dc:creator>
      <dc:date>2006-06-05T00:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to call a Bean from Freemarker template</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-call-a-bean-from-freemarker-template/m-p/20129#M9355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure exactly what you mean here - by "call" do you mean generate the HTML for an action which is then clickable or do you mean actually run an action directly from the template while it is executing? If you mean running an action during template execution then generally you can't do this kind of thing in a template - for starters the template engine executes within the server (e.g. not within the web-client itself) and has no access to client-side action code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However if you are talking about generating URLs for client actions, then we currently have a few actions that work via the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/URL_Addressability#ExternalAccessServlet" rel="nofollow noopener noreferrer"&gt;ExternalAccessServlet&lt;/A&gt;&lt;SPAN&gt; , there is support to generate Document Details, Space Details and Browse URLs - but more could be added. Examples of this can be seen in some of the example templates provided such as my_spaces.ftl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It sounds like you would get a lot out of the new JavaScript engine in 1.3 - this is more suitable for executing actions or similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&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 Jun 2006 09:22:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-call-a-bean-from-freemarker-template/m-p/20129#M9355</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2006-06-05T09:22:41Z</dc:date>
    </item>
  </channel>
</rss>

