<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Running Alfresco web scripts as Liferay portlets</title>
	<atom:link href="http://ecmarchitect.com/archives/2008/04/08/823/feed" rel="self" type="application/rss+xml" />
	<link>http://ecmarchitect.com/archives/2008/04/08/823</link>
	<description>Jeff Potts on ECM, portals, search, collaboration, and a bunch of personal stuff</description>
	<lastBuildDate>Mon, 14 May 2012 10:48:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Bakytzhan</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-67721</link>
		<dc:creator>Bakytzhan</dc:creator>
		<pubDate>Tue, 19 Apr 2011 06:58:04 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-67721</guid>
		<description>Hello everybody,

I have a Tomcat server with a Liferay Portal (6.0.5) and Alfresco (v3.4c). I followed some tutorials to have webscripts as portlets, and everything seems to work well with out-of-the-box UI portlet.

But, I have a problem with my own webscripts, especially when I have:
- a webscript with a form
form.get.html.ftl:

Code: Select all

Name : 
File : 





- a webscript with the formdata object to catch informations from the previous webscript
form.post.js:

Code: Select all
var filename = null;
var content = null;
var title = &quot;&quot;;

// locate file attributes
for each (field in formdata.fields)
{
if (field.name == &quot;name&quot;)
{
title = field.value;
}
else if (field.name == &quot;myfile&quot; &amp;&amp; field.isFile)
{
filename = field.filename;
content = field.content;
}
}
// treatment....



My problems:
- When I press the submit button, I leave the portal. I found a solution with the scripturl() method

Code: Select all



- But POST webscripts don&#039;t seem to be supported by the WebScriptPortlet class. A first solution was to bring together the both webscripts.

Code: Select all



Code: Select all
if (args.step == 1)
{
//treatment with the formdata object
}
else
{
//treatment to build the form
}
- But now, I have this exception when I submit the form: Exception: org.mozilla.javascript.EcmaError - ReferenceError: &quot;formdata&quot; is not defined (AlfrescoScript#10)

Is there an issue with POST webscripts in portlet? Is there a solution to my problem?

Thank you, and excuse me for my english</description>
		<content:encoded><![CDATA[<p>Hello everybody,</p>
<p>I have a Tomcat server with a Liferay Portal (6.0.5) and Alfresco (v3.4c). I followed some tutorials to have webscripts as portlets, and everything seems to work well with out-of-the-box UI portlet.</p>
<p>But, I have a problem with my own webscripts, especially when I have:<br />
- a webscript with a form<br />
form.get.html.ftl:</p>
<p>Code: Select all</p>
<p>Name :<br />
File : </p>
<p>- a webscript with the formdata object to catch informations from the previous webscript<br />
form.post.js:</p>
<p>Code: Select all<br />
var filename = null;<br />
var content = null;<br />
var title = &#8220;&#8221;;</p>
<p>// locate file attributes<br />
for each (field in formdata.fields)<br />
{<br />
if (field.name == &#8220;name&#8221;)<br />
{<br />
title = field.value;<br />
}<br />
else if (field.name == &#8220;myfile&#8221; &amp;&amp; field.isFile)<br />
{<br />
filename = field.filename;<br />
content = field.content;<br />
}<br />
}<br />
// treatment&#8230;.</p>
<p>My problems:<br />
- When I press the submit button, I leave the portal. I found a solution with the scripturl() method</p>
<p>Code: Select all</p>
<p>- But POST webscripts don&#8217;t seem to be supported by the WebScriptPortlet class. A first solution was to bring together the both webscripts.</p>
<p>Code: Select all</p>
<p>Code: Select all<br />
if (args.step == 1)<br />
{<br />
//treatment with the formdata object<br />
}<br />
else<br />
{<br />
//treatment to build the form<br />
}<br />
- But now, I have this exception when I submit the form: Exception: org.mozilla.javascript.EcmaError &#8211; ReferenceError: &#8220;formdata&#8221; is not defined (AlfrescoScript#10)</p>
<p>Is there an issue with POST webscripts in portlet? Is there a solution to my problem?</p>
<p>Thank you, and excuse me for my english</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bakytzhan</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-67036</link>
		<dc:creator>Bakytzhan</dc:creator>
		<pubDate>Wed, 06 Apr 2011 04:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-67036</guid>
		<description>Jeff, I followed this link http://blogs.alfresco.com/wp/wabson/2011/02/17/from-web-scripts-to-portlets-alfresco-3-4/</description>
		<content:encoded><![CDATA[<p>Jeff, I followed this link <a href="http://blogs.alfresco.com/wp/wabson/2011/02/17/from-web-scripts-to-portlets-alfresco-3-4/" rel="nofollow">http://blogs.alfresco.com/wp/wabson/2011/02/17/from-web-scripts-to-portlets-alfresco-3-4/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bakytzhan</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-67034</link>
		<dc:creator>Bakytzhan</dc:creator>
		<pubDate>Wed, 06 Apr 2011 03:21:59 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-67034</guid>
		<description>jpotts, i integrated alfresco 3.4c with liferay 6.0.5. So i made my hello-world webscript as portlet. But when i attemp to access root scoped objects as roothome,company home , some errors occur : &quot;roothome object is not defined.&quot;. What i should do to access following root object.</description>
		<content:encoded><![CDATA[<p>jpotts, i integrated alfresco 3.4c with liferay 6.0.5. So i made my hello-world webscript as portlet. But when i attemp to access root scoped objects as roothome,company home , some errors occur : &#8220;roothome object is not defined.&#8221;. What i should do to access following root object.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jpotts</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-67007</link>
		<dc:creator>jpotts</dc:creator>
		<pubDate>Tue, 05 Apr 2011 14:04:23 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-67007</guid>
		<description>Yes, Liferay can integrate with 3.4c. There are a variety of options: Web Services, Web Scripts, CMIS, and third-party toolkits.

Jeff</description>
		<content:encoded><![CDATA[<p>Yes, Liferay can integrate with 3.4c. There are a variety of options: Web Services, Web Scripts, CMIS, and third-party toolkits.</p>
<p>Jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bakytzhan</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-67000</link>
		<dc:creator>Bakytzhan</dc:creator>
		<pubDate>Tue, 05 Apr 2011 11:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-67000</guid>
		<description>can anyone tell me does it integrate with alfresco3.4c?</description>
		<content:encoded><![CDATA[<p>can anyone tell me does it integrate with alfresco3.4c?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-47564</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Tue, 09 Feb 2010 00:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-47564</guid>
		<description>Hi Jeff

I got it all working with Liferay 5.3, but the SSO is not working, the web client portlet logs as guest

I tried to use CAS but I&#039;ve read I need to make a filter

Can you help me out on this one plz? with or without CAS... anything...</description>
		<content:encoded><![CDATA[<p>Hi Jeff</p>
<p>I got it all working with Liferay 5.3, but the SSO is not working, the web client portlet logs as guest</p>
<p>I tried to use CAS but I&#8217;ve read I need to make a filter</p>
<p>Can you help me out on this one plz? with or without CAS&#8230; anything&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis Teijon</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-38721</link>
		<dc:creator>Luis Teijon</dc:creator>
		<pubDate>Wed, 15 Jul 2009 19:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-38721</guid>
		<description>I&#039;m using Liferay 5.2.2... on Windows, of course...</description>
		<content:encoded><![CDATA[<p>I&#8217;m using Liferay 5.2.2&#8230; on Windows, of course&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Luis Teijon</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-38720</link>
		<dc:creator>Luis Teijon</dc:creator>
		<pubDate>Wed, 15 Jul 2009 19:32:29 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-38720</guid>
		<description>I&#039;ve been reading your posts but I doesn&#039;t work for me. I added the following files

liferay-display.xml, 
liferay-plugin-package.xml,
liferay-portlet.xml, 
liferay-display.xml
web.xml
and portlet.xml

and alfresco didn&#039;t work anymore, it showed this error:   
javax.faces.FacesException: java.lang.ClassNotFoundException: com.liferay.util.bridges.jsf.myfaces.MyFacesContextFactoryImpl
caused by:
java.lang.ClassNotFoundException: com.liferay.util.bridges.jsf.myfaces.MyFacesContextFactoryImpl

I don&#039;t know if I followed the steps correctly, I mean I didn&#039;t know how to re-package the WAR so I create a RAR archive and changed its extension, after that I copied it into 
C:\Documents and Settings\USER\liferay\deploy
 directory, is that correct????</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been reading your posts but I doesn&#8217;t work for me. I added the following files</p>
<p>liferay-display.xml,<br />
liferay-plugin-package.xml,<br />
liferay-portlet.xml,<br />
liferay-display.xml<br />
web.xml<br />
and portlet.xml</p>
<p>and alfresco didn&#8217;t work anymore, it showed this error:<br />
javax.faces.FacesException: java.lang.ClassNotFoundException: com.liferay.util.bridges.jsf.myfaces.MyFacesContextFactoryImpl<br />
caused by:<br />
java.lang.ClassNotFoundException: com.liferay.util.bridges.jsf.myfaces.MyFacesContextFactoryImpl</p>
<p>I don&#8217;t know if I followed the steps correctly, I mean I didn&#8217;t know how to re-package the WAR so I create a RAR archive and changed its extension, after that I copied it into<br />
C:\Documents and Settings\USER\liferay\deploy<br />
 directory, is that correct????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paula</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-37206</link>
		<dc:creator>paula</dc:creator>
		<pubDate>Wed, 24 Jun 2009 17:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-37206</guid>
		<description>Hi, Lalit:

I&#039;ve tried this with Alfresco Lab3 and liferay 5.1.2 tomcat 5.5 bundle. It works fine as the instruction except for I can not upload file within the Alfresco portlet which I believe it an existing Alfresco 3 bug. 

Good luck</description>
		<content:encoded><![CDATA[<p>Hi, Lalit:</p>
<p>I&#8217;ve tried this with Alfresco Lab3 and liferay 5.1.2 tomcat 5.5 bundle. It works fine as the instruction except for I can not upload file within the Alfresco portlet which I believe it an existing Alfresco 3 bug. </p>
<p>Good luck</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paula</title>
		<link>http://ecmarchitect.com/archives/2008/04/08/823/comment-page-1#comment-37205</link>
		<dc:creator>paula</dc:creator>
		<pubDate>Wed, 24 Jun 2009 17:50:28 +0000</pubDate>
		<guid isPermaLink="false">http://ecmarchitect.com/archives/2008/04/08/823#comment-37205</guid>
		<description>Hi, Jeff:

I tried this with Alfresco Lab3 and Liferay 5.2.3. Everything is fine until I tried to deploy the alfresco.war to liferay. I got following error message:

com.liferay.portal.kernel.deploy.auto.AutoDeployException: alfresco.war does not support this version of Liferay

So the integration way won&#039;t work for liferay 5.2.3? is there anything I could do to fix it? Has anybody tried this with liferay 5.2.3?

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Hi, Jeff:</p>
<p>I tried this with Alfresco Lab3 and Liferay 5.2.3. Everything is fine until I tried to deploy the alfresco.war to liferay. I got following error message:</p>
<p>com.liferay.portal.kernel.deploy.auto.AutoDeployException: alfresco.war does not support this version of Liferay</p>
<p>So the integration way won&#8217;t work for liferay 5.2.3? is there anything I could do to fix it? Has anybody tried this with liferay 5.2.3?</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

