« Back to Liferay IDE

Developing Portlets in Liferay IDE

Portlet Development Demo Video. #

Click the link below to see a video of portlet development demo.

Portlet development demo video

0 Attachments
71374 Views
Average (4 Votes)
The average rating is 3.25 stars out of 5.
Comments
Threaded Replies Author Date
I just began a project, and I have to use... Roman Quelen June 25, 2010 5:23 AM
The documentation here would not be... Gregory Amerson June 26, 2010 10:51 AM
Ok, I'll look this way (although I already made... Roman Quelen June 28, 2010 12:51 AM
can any one tell me, is there the screen cast... Heri Parid Pardian June 29, 2010 1:06 AM
Not yet but hopefully soon. Gregory Amerson July 2, 2010 7:58 AM
I basically did what was described in the... Stefan Moellmann July 27, 2010 6:56 AM
The same as Stefan here! It did not happen to... Aritz Galdos July 29, 2010 6:17 AM
Same here. I haven't been able to add a simple... Victor Popiol July 29, 2010 8:26 AM
I had the same problem with infinite loop of... Peter Sterba July 30, 2010 12:12 AM
I have the same problem, I created the... Nicolas Burg August 2, 2010 9:09 AM
A work around was posted in the Issue by... Geoff Ruscoe August 2, 2010 12:30 PM
This video is great and helps a lot to create... Nicolas Burg August 5, 2010 3:01 AM
You will likely have to include the struts jars... Gregory Amerson August 5, 2010 8:19 AM
Hey guys, if you want to get the fixed portlet... Gregory Amerson August 5, 2010 8:22 AM
I´m a newbie to liferay and pretty frustrated... Antti Kokko August 19, 2010 2:39 AM
Try installing the nightly build of the IDE the... Gregory Amerson August 19, 2010 6:32 AM
Video seems to be missing. Anyway we could have... Jason Morton August 25, 2010 2:03 PM
Hi Jason, I fixed the link. Gregory Amerson August 27, 2010 12:15 PM
Hi, Did anyone face problem using service... Sandeep Nair September 6, 2010 4:31 AM
I encountered a problem while trying to add... Bindu Lakhanpal September 14, 2010 10:38 PM
Hi Bindu That problem will arise if you use... Ramesh K September 14, 2010 11:37 PM
I added a new portlet as demonstrated by this... Bindu Lakhanpal September 16, 2010 11:54 PM
I am getting the following error when trying to... Michael Smolyak October 13, 2010 6:10 AM
The video is broken/gone? I am logged in but... Keith Freeman October 13, 2010 8:32 AM
Thanks for the note Keith, the permissions... Gregory Amerson October 19, 2010 1:32 AM
The video is gone again. I get the error below.... Eren Senelmis November 19, 2011 12:57 PM
New Jira ticket for 404 :... Mike Harris December 23, 2011 6:26 AM
Sorry for the inconvenience. I have fixed the... Gregory Amerson January 2, 2012 8:58 PM
I successfully created a Portlet per this... Neo Foo February 8, 2012 5:41 PM
Hi all, is there any document that is relevant... Vivekanantham Janakiram July 30, 2012 3:06 AM

I just began a project, and I have to use Liferay, so I figured the best way to develop new portlets would be the new IDE, but I don't have much time (8 weeks).
It's the first time I have to work with portlets, so it's a little difficult to start without documentation.
Will this documentation be released soon or should I pick another framework to start to work with?
Posted on 6/25/10 5:23 AM.
The documentation here would not be comprehensive on portlet development in Liferay but rather just how to use the Liferay Portlet wizard in Liferay IDE. But there is lots of information you need online for Liferay 5.2 documentation that would include portlet development.

http://www.liferay.com/documentation/liferay-portal/5.2
Posted on 6/26/10 10:51 AM in reply to Roman Quelen.
Ok, I'll look this way (although I already made a first glance at the documentation).
Posted on 6/28/10 12:51 AM in reply to Gregory Amerson.
can any one tell me, is there the screen cast video tutorial for EXT - Plugin (Liferay portal 6)
Posted on 6/29/10 1:06 AM.
Not yet but hopefully soon.
Posted on 7/2/10 7:58 AM in reply to Heri Parid Pardian.
I basically did what was described in the video, but when I was trying to add the new portlet to a page in Liferay (as in 2:15 min in the video) the portlet wasn't loaded. It was listed in the selection dialog so it was obviously deployed, but when I added it there was just an animation indicating that it was still loading.

Meanwhile in the console of the Liferay/Tomcat-Server there was an exception being thrown in an infinite loop. The exception starts of with:
"Caused by: javax.portlet.PortletException: javax.servlet.ServletException: javax.portlet.PortletException: javax.servlet.ServletException: javax.portlet.PortletException: javax.servlet.ServletException: Servlet execution threw an exception
at com.liferay.portlet.PortletRequestDispatcherImpl.include(PortletRequestDispatche­rImpl.java:109)"
and is followed by a stack trace of probably hundreds of lines.

What did I do wrong? Why does it work in the video but not on my machine?

These are the software components I am working with:
Eclipse JEE Helios
Liferay Portal Tomcat 6.0.4
Liferay Plugins SDK 6.0.4
Liferay Eclipse Plugin 1.0.1

If you need any more information to understand my problem, feel free to ask!
Any help would be much appreciated!
Posted on 7/27/10 6:56 AM.
The same as Stefan here!
It did not happen to me with previous versions.
I use exactly the same config as Stefan
Posted on 7/29/10 6:17 AM in reply to Stefan Moellmann.
Same here. I haven't been able to add a simple sample portlet to the portal. The server gets into an infinite loop with exceptions. I'm using the tomcat bundle 6.04 and the plugin sdk 6.04 on Eclipse Helios. Any help will be highly appreciated.

Victor
Posted on 7/29/10 8:26 AM.
I had the same problem with infinite loop of exceptions. Out of pure desperation I tried to return to the clear starting state, and it worked.
In my case I have delted all the projects from Liferay IDE (including source files), and also all remaining/forgotten portlets from ..liferay-plugins-sdk-6.0.2\portlets\
Posted on 7/30/10 12:12 AM in reply to Victor Popiol.
I have the same problem, I created the following issue : http://issues.liferay.com/browse/IDE-174
I hope a fix will be sent soon emoticon
Posted on 8/2/10 9:09 AM in reply to Peter Sterba.
A work around was posted in the Issue by Gregory Amerson

Here is the quote:
Hey guys, this problem has been fixed in SVN but I haven't gotten the nightly builds fixed as I haven't had a chance to discuss the issue with Brian Chan.

But it is easy to avoid it with the current release of the IDE by simply changing the name of the JSP folder for the mode jsps to be something other than an exact match for the portlet name. See issue IDE-160

-----

Super big thanks to everyone for such a quick reply. I have tested the work around and passed it along to coworkers.

Cheers!
Posted on 8/2/10 12:30 PM in reply to Nicolas Burg.
This video is great and helps a lot to create simple portlets.

But, is it possible to have a demo of how to develop portlet with struts actions?

I've tried to modify the portlet.xml to make a StrutsPortlet but the class was missing in my libs... Is there a tutorial somewhere on how to implement solutions with struts actions in a new portlet using liferay ide and liferay-plugins-sdk?
Posted on 8/5/10 3:01 AM.
You will likely have to include the struts jars in your portal dependency jars in the liferay-plugin-package.properties. I hope to support more struts development in the future that will make it more straight forward.
Posted on 8/5/10 8:19 AM in reply to Nicolas Burg.
Hey guys, if you want to get the fixed portlet wizard that avoids the infinite loop exceptions you can install the nightly build (development stream) here:

http://releases.liferay.com/tools/ide/eclipse/helios/nightly/
Posted on 8/5/10 8:22 AM.
I´m a newbie to liferay and pretty frustrated since I´ve been figthing with this infinite loop for couple of days and nothing seems to work out. I tried to rename the folder and installed the nightly build but still no success.
Posted on 8/19/10 2:39 AM in reply to Gregory Amerson.
Try installing the nightly build of the IDE the infinite loop bug has been fixed.

http://releases.liferay.com/tools/ide/eclipse/helios/nightly/
Posted on 8/19/10 6:32 AM in reply to Antti Kokko.
Video seems to be missing. Anyway we could have that video back?
Posted on 8/25/10 2:03 PM in reply to Gregory Amerson.
Hi Jason, I fixed the link.
Posted on 8/27/10 12:15 PM in reply to Jason Morton.
Hi,

Did anyone face problem using service builder in the IDE. First time it works fine. When i tried to add another entity and try to build-service and then deploy it gave me error in the server. So i switched back to using service builder from command prompt.
Posted on 9/6/10 4:31 AM in reply to Gregory Amerson.
I encountered a problem while trying to add portlet.
I signed in using test@liferay.com and test as password.
When i am trying to add by clicking the green add button,there is a continouus Loading.. message appearing in the small box..
Posted on 9/14/10 10:38 PM.
Hi Bindu
That problem will arise if you use browser version below IE7 & mozilla below 3.5
so use greater versions to work
for more info click this link.
http://www.liferay.com/community/forums/-/message_boards/message/5673473


Tha­nks & Regards
Ramesh K
Posted on 9/14/10 11:37 PM in reply to Bindu Lakhanpal.
I added a new portlet as demonstrated by this video.But there were no "Preferences" and "Help" options at 2:44.Only "Look and Feel" and "configuration" options are there.
Posted on 9/16/10 11:54 PM.
I am getting the following error when trying to watch the video.

You do not have permission to access the requested resource.

http://www.liferay.com/c/document_library/get_file?p_l_id=5630538&groupId=461583­7&folderId=4933105&name=DLFE-40608.swf

Michael
Posted on 10/13/10 6:10 AM.
The video is broken/gone? I am logged in but get this error when I click the link:

Forbidden

You do not have permission to access the requested resource.

http://www.liferay.com/c/document_library/get_file?p_l_id=5630538&groupId=461583­7&folderId=4933105&name=DLFE-40608.swf
Posted on 10/13/10 8:32 AM.
Thanks for the note Keith, the permissions should be fixed now.
Posted on 10/19/10 1:32 AM in reply to Keith Freeman.
The video is gone again. I get the error below.

The requested resource was not found.

http://www.liferay.com/c/document_library/get_file?p_l_id=5630538&groupId=­4615837&folderId=4933105&name=DLFE-40608.swf
Posted on 11/19/11 12:57 PM in reply to Gregory Amerson.
New Jira ticket for 404 :
http://issues.liferay.com/browse/IDE-526
Posted on 12/23/11 6:26 AM in reply to Eren Senelmis.
Sorry for the inconvenience. I have fixed the video link.
Posted on 1/2/12 8:58 PM.
I successfully created a Portlet per this video. The problem I'm having is modifications to my JSP don't appear when I refresh the web page hosting my portlet.

The only way I can get my JSP changes to show up in the browser is to right click on my project in Eclipse then select Liferay -> SDK -> Deploy. Then when I refresh the page hosting my portlet I can see the changes.

How can I make the modifications to my project files automatically deploy?
Posted on 2/8/12 5:41 PM.
Hi all, is there any document that is relevant to the developing the custom portlet using Eclipse IDE.
Posted on 7/30/12 3:06 AM.