<?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: Share/Surf WebScript with Java backed bean in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235885#M189015</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is already any way to make a Java webscript in the new version of alfresco share (3.4.c) ? If so, where can I get an example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Feb 2011 22:03:45 GMT</pubDate>
    <dc:creator>andrewriver</dc:creator>
    <dc:date>2011-02-01T22:03:45Z</dc:date>
    <item>
      <title>Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235881#M189011</link>
      <description>Hey,I am trying to write a web script into alfresco share, and I want it to have a Java backed bean. The purpose of the webscript is to move users from one user group to another. I have already written a web script with this functionality into alfresco itself, but I want it to be in a share applicat</description>
      <pubDate>Tue, 21 Jul 2009 09:49:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235881#M189011</guid>
      <dc:creator>bela</dc:creator>
      <dc:date>2009-07-21T09:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235882#M189012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The preferred way would be to expose your Alfresco (repository) version as a RESTful service and call it from Share that way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any reason why you wouldn't want to try that approach? That's how Share has been implemented.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 11:29:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235882#M189012</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-07-21T11:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235883#M189013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I understand you correctly, you mean to put the entire webscript in alfresco and render a JSON response, which I digest in another Share webscript using a javascript controller, right? If this is what you mean, I would appreciate a hint where to look for an example. I read a lot of posts about looking at the share source code, but I haven't found an example that does just that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 11:42:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235883#M189013</guid>
      <dc:creator>bela</dc:creator>
      <dc:date>2009-07-21T11:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235884#M189014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that's exactly it. You can pretty much look at any example in Share - the Document Library is all AJAX/JSON-based although with JavaScript-based repository web scripts rather than Java-backed; but that's just an implementation detail.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2009 12:22:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235884#M189014</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2009-07-21T12:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235885#M189015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is already any way to make a Java webscript in the new version of alfresco share (3.4.c) ? If so, where can I get an example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 22:03:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235885#M189015</guid>
      <dc:creator>andrewriver</dc:creator>
      <dc:date>2011-02-01T22:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235886#M189016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, both the Forms UI component and the I18N Messages webscripts are Java-backed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 22:28:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235886#M189016</guid>
      <dc:creator>mikeh</dc:creator>
      <dc:date>2011-02-01T22:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235887#M189017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks MikeH! It works! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I saw the webscripts defined in slingshot-application-context.xml and registered here my custom java webscript…I'll be working on it and if I would have any question I'll let you know.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Feb 2011 14:35:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235887#M189017</guid>
      <dc:creator>andrewriver</dc:creator>
      <dc:date>2011-02-02T14:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235888#M189018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi andrewriver,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please explain me what steps did you take and what files you created and where did you put all these files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to create a Subscribe action in share documentlibrary. I have created it successfully and deployed on tomcat.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when a user clicks on the subscribe link/action under +More.. it displays the message document/folder subscribed successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But this all I implemented using javascript based webscripts at share. Now I want to convert this into java backed webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please help me in this? Because I am not sure where shall I place my java file and how should I connect/link this file to my&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;subscribe.post.desc.xml, subscribe.post.json.ftl and subscribe.post.json.js.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All these files are stored/placed in templates\webscripts\org\alfresco\slingshot\documentlibrary\action folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And a javascript file which gets triggered when user clicks on the link is stored in \share\components\documentlibrary folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Snippet from subscribe-action-min.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;webscript:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name: "subscribe/site/{site}/{container}",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //name: "demo/simple",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; method: Alfresco.util.Ajax.POST&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Which in turn call subscribe.post.json.js and subscribe.post.json.ftl.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sanjay.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 13:23:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235888#M189018</guid>
      <dc:creator>sans</dc:creator>
      <dc:date>2011-07-07T13:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235889#M189019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi sans&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You must create your java webscript (Abtract or Declarative). Then, create the descriptor *.desc.xml and ftl or js that you need. After that, register your new webscript in the file slingshot-application-context.xml setting the java class of your webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's it. You can check your new webscript at the Webscripts Home of your application (localhost/share/service/index) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope it works. Good luck with that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 16:07:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235889#M189019</guid>
      <dc:creator>andrewriver</dc:creator>
      <dc:date>2011-07-07T16:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235890#M189020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi andrewriver,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well I did same thing. The only difference was the file where i defined the bean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I defined it in web-scripts-application-context.xml under tomcat\shared\classes\alfresco\extension.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It was registered under localhost/alfresco/service/index.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It worked!!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jul 2011 14:59:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235890#M189020</guid>
      <dc:creator>sans</dc:creator>
      <dc:date>2011-07-08T14:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Share/Surf WebScript with Java backed bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235891#M189021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Bela,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know this is an old post but I am answering anyway for the benefit of anyone googling this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible to have a Java-backed webscript in Share. If you would like to see how it's done you can follow this thread on another post: &lt;/SPAN&gt;&lt;A href="https://forums.alfresco.com/comment/138459#comment-138459" rel="nofollow noopener noreferrer"&gt;Click here&lt;/A&gt;&lt;SPAN&gt;. However, I totally agree with MikeH: Your Java-backed webscript should reside in the Alfresco Repository and accessed from Share through a RESTful presentation webscript (server-side) or Ajax call (client-side).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps. Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 22:05:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/share-surf-webscript-with-java-backed-bean/m-p/235891#M189021</guid>
      <dc:creator>eric_soto</dc:creator>
      <dc:date>2013-09-17T22:05:25Z</dc:date>
    </item>
  </channel>
</rss>

