<?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: Questions about web script portlet in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88697#M60200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the 2.1 final release will be avalaible ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jul 2007 07:34:42 GMT</pubDate>
    <dc:creator>unknown-user</dc:creator>
    <dc:date>2007-07-04T07:34:42Z</dc:date>
    <item>
      <title>Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88694#M60197</link>
      <description>I have several questions about webscriptportlet:does the webscript myspaces take into consideration the user athenticated ie does ut only display the spaces taht the user has the right to see?Does the webscript portlet can be deployed in lifreay as a standalone portlet ? If yes does someone have ind</description>
      <pubDate>Mon, 02 Jul 2007 19:37:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88694#M60197</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2007-07-02T19:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88695#M60198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have several questions about webscriptportlet:&lt;BR /&gt;&lt;BR /&gt;does the webscript myspaces take into consideration the user athenticated ie does ut only display the spaces taht the user has the right to see?&lt;BR /&gt;&lt;BR /&gt;ANSWER:&amp;nbsp; Yes.&amp;nbsp; Any access point into Alfresco (UI, FTP, CIFS, API) always respects security settings.&lt;BR /&gt;&lt;BR /&gt;Does the webscript portlet can be deployed in lifreay as a standalone portlet ? If yes does someone have indications about how to do it?&lt;BR /&gt;&lt;BR /&gt;ANSWER:&amp;nbsp; Not sure of that one specifically, but remember that WebScripts are URL-based access points into Alfresco.&amp;nbsp; There's no specialised portlet that's required to integrate them.&lt;BR /&gt;&lt;BR /&gt;Does the portletauthenticator that is on the svn supports cas sso?&lt;BR /&gt;&lt;BR /&gt;thanks in advance&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2007 20:44:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88695#M60198</guid>
      <dc:creator>sdavis</dc:creator>
      <dc:date>2007-07-02T20:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88696#M60199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Does the webscript portlet can be deployed in lifreay as a standalone portlet ? If yes does someone have indications about how to do it?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes the webscript portlets will be available for Liferay as individual standalone portlets. Note that due to the JavaScript libraries we use, only Liferay 4.3 will be supported. We will provide wiki instructions on deploying the alfresco.war to liferay for 2.1 final release (as we have recently made some fixes to get them working).&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>Tue, 03 Jul 2007 16:37:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88696#M60199</guid>
      <dc:creator>kevinr</dc:creator>
      <dc:date>2007-07-03T16:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88697#M60200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the 2.1 final release will be avalaible ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 07:34:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88697#M60200</guid>
      <dc:creator>unknown-user</dc:creator>
      <dc:date>2007-07-04T07:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88698#M60201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I using liferay 4.3.1 and Alfresco 2.1, I create a JSR 168 Alfresco portlet with Webscript. In this webscript, I have a link to other webscript. When I click on this link, I have a horrible error:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;aught exception &amp;amp; redirecting to status template: Failed to execute script '/storage/tomcat-6.0_liferay-4.3.1/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/test.post.js': Failed to execute script '/storage/tomcat-6.0_liferay-4.3.1/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/test.post.js': Wrapped org.alfresco.service.namespace.NamespaceException: Namespace prefix alfresco is not mapped to a namespace URI (AlfrescoScript#9)&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone knows why I have this error???&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;–&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Santigt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 17:02:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88698#M60201</guid>
      <dc:creator>santigt</dc:creator>
      <dc:date>2007-09-19T17:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88699#M60202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What's in your test.post.js script?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 17:12:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88699#M60202</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-09-19T17:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88700#M60203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have two webscripts: test.get and test.post.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first one takes a parameter (GET), the Alfresco directory or space we want to access. So, if you have permission you can choose several options in a menu. If you click on one of these options, you access to test.post webscript.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second one only present (using Freemarker) contents of space you have chosen. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you try to execute the webscripts whitout portlets (simple web), its are running correctly. If you try with JSR 168 portlets, you have this error. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see at webscript debug log that the first access (test.get) execute WebScriptPortlet class. The second access (test.post) execute WebScriptServlet class. That's normal, no?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea? Thanks a lot! Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Santigt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 06:35:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88700#M60203</guid>
      <dc:creator>santigt</dc:creator>
      <dc:date>2007-09-20T06:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88701#M60204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When generating references to webscript urls in your response template you can make use of the following template methods…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;scripturl&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;clienturlfunction&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;as described here… &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts#.22Response.22_Templates" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts#.22Response.22_Templates&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These ensure your webscript urls are correctly rendered regardless of which environment the web script is executed in (e.g. JSR-168).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 09:17:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88701#M60204</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-09-20T09:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88702#M60205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick answer!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I don't understand who can I use "clienturlfunction" in Freemarker and what can i obtain with it. Please, can anyone put an example using this function?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!! Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Santigt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 09:58:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88702#M60205</guid>
      <dc:creator>santigt</dc:creator>
      <dc:date>2007-09-20T09:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88703#M60206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;clienturlfunction is only required if you you wish to issue urls directly from the browser (e.g. in an AJAX context).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An example can be found in myspaces.get.html.ftl.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 10:07:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88703#M60206</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-09-20T10:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88704#M60207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Everybody!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to create a simple external portlet based on WebScriptPortlet class. The problem is that I cannot use the WebScriptPortletResponse class, because the constructor is not visible. I don't know if it's a bug or not. Can anyone notice me about another way to obtain the response in the portlet, please??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here you can see the code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private class WebScriptPortalRuntime extends WebScriptRuntime&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&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; protected WebScriptResponse createResponse()&lt;BR /&gt;&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;return new WebScriptPortletResponse(res); &amp;lt;- ERROR&lt;BR /&gt;&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; …..&lt;BR /&gt;&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;/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;BR /&gt;&lt;SPAN&gt;Thanks so much!! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Santigt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:26:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88704#M60207</guid>
      <dc:creator>santigt</dc:creator>
      <dc:date>2007-09-28T10:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88705#M60208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What are you trying to achieve?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think a step-backwards is required here.&amp;nbsp; You shouldn't need to be messing around with these classes unless you're attempting something obscure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 10:33:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88705#M60208</guid>
      <dc:creator>davidc</dc:creator>
      <dc:date>2007-09-28T10:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Questions about web script portlet</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88706#M60209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I want to connect liferay and Alfresco (authentication problems solved) using webscript (so, using WebScriptPortlet class). I cannot use exactly your WebScriptPortlet code because I need:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+ to obtain other information from Liferay, for example, portal name, id user,… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+ to connect (using HTML hyperlinks) webscripts between them. For example, sending args (PRE or POST) from one to other. So we need to change and modify the URL from the hyperlinks. Example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Before: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;a href="&lt;A href="http://localhost:8080/alfresco/wcservice/test2?path=Home+company" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/wcservice/test2?path=Home+company&lt;/A&gt;"&amp;gt;…&amp;lt;/a&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;After:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;a href="&lt;A href="http://localhost:8080/?urlScript=/alfresco/168s/test2&amp;amp;_AlfrescoTest_WAR_alfresco_path=Home+company" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/?urlScript=/alfresco/168s/test2&amp;amp;_AlfrescoTest_WAR_alfresco_path=Home+company&lt;/A&gt;"&amp;gt;…&amp;lt;/a&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's why I have to do this portlet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice? Thanks a lot!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Santigt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2007 12:02:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-about-web-script-portlet/m-p/88706#M60209</guid>
      <dc:creator>santigt</dc:creator>
      <dc:date>2007-09-28T12:02:05Z</dc:date>
    </item>
  </channel>
</rss>

