<?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 Java - Build Dynamic Script Model in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/java-build-dynamic-script-model/m-p/253849#M206979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Been attempting to a compile a web-script on my own through a java class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have successfully compiled the FTL using the class "org.springframework.extensions.webscripts.processor.FTLTemplateProcessor;" and processing the string and using a temporary model fro now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I now need to figure out the javascript compiler to get a real model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe this is the correct class to be using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"org.springframework.extensions.webscripts.processor.JSScriptProcessor"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My questions are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1: How to build the default objects that are avialable to javascript serverside files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2: Any comments on the JSScriptProcessor and if it is able to process content as a string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ill be sure to post my class afterwards for any help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Aug 2012 14:27:11 GMT</pubDate>
    <dc:creator>drozes</dc:creator>
    <dc:date>2012-08-29T14:27:11Z</dc:date>
    <item>
      <title>Java - Build Dynamic Script Model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-build-dynamic-script-model/m-p/253849#M206979</link>
      <description>Hi guys;Been attempting to a compile a web-script on my own through a java class.I have successfully compiled the FTL using the class "org.springframework.extensions.webscripts.processor.FTLTemplateProcessor;" and processing the string and using a temporary model fro now.I now need to figure out the</description>
      <pubDate>Wed, 29 Aug 2012 14:27:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-build-dynamic-script-model/m-p/253849#M206979</guid>
      <dc:creator>drozes</dc:creator>
      <dc:date>2012-08-29T14:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Java - Build Dynamic Script Model</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/java-build-dynamic-script-model/m-p/253850#M206980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am not sure I understand what you are trying to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Both the FTLTemplateProcessor and JSScriptProcessor are not compilers themselves - they may use a compiler internally, but may also be configured to use interpretation mode. The JSScriptProcessor is already capable of processing a String as source for the content of a script. Check out its public API defined by the ScriptProcessor interface.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ProcessorModelHelper provides utility methods to populate a default model based on the current request context. Note that this only provides the same objects avaible to a Share web script. The Repository tier uses a custom framework of processors and utilities for the execution of web scripts and does not reuse most of the Spring web scripts default components.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can of course always populate the model yourself, depending on what you need to be available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 08:38:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/java-build-dynamic-script-model/m-p/253850#M206980</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2012-08-30T08:38:29Z</dc:date>
    </item>
  </channel>
</rss>

