Forums

Home » Liferay Portal » English » Liferay Legacy

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ruel Roderno del Mundo
Duplicate an Out-of-the-box Portlet
April 24, 2007 4:08 AM
Answer

Ruel Roderno del Mundo

Rank: New Member

Posts: 12

Join Date: April 13, 2007

Recent Posts

Hello there!

I want to customize an existing out-of-the-box Liferay portlet. I still want the original to remain, so what I wanted to do is to duplicate the portlet and then modify it.

How to duplicate a portlet?
Banji O
RE: Duplicate an Out-of-the-box Portlet
May 25, 2007 12:54 AM
Answer

Banji O

Rank: Junior Member

Posts: 61

Join Date: April 3, 2007

Recent Posts

I want to do the same thing too. Did you get to figure it out?
Martin Duerrenberger
RE: Duplicate an Out-of-the-box Portlet
May 25, 2007 2:39 AM
Answer

Martin Duerrenberger

Rank: New Member

Posts: 3

Join Date: May 25, 2007

Recent Posts

Hi all, I'm trying too. Until now without success emoticon

which one are you trying to extract. I choose the "Language-portlet"

I started with a new dynamic-webapp in eclipse,
then copied the JSPs found under:
/home/liferay/tomcat-5.5.17/webapps/ROOT/html/portlet/language
to my Project-Folder

The Java-Code for the portlets can be found under:
/home/liferay/svn/portal-ejb/src/com/liferay/portlet/language

My problem now is to extract the config-files and deployment-descriptor's needed for the portlet.

Any hints?!

greez m
Sebastián Gurin
RE: Duplicate an Out-of-the-box Portlet
June 4, 2010 10:04 AM
Answer

Sebastián Gurin

Rank: Junior Member

Posts: 75

Join Date: June 13, 2007

Recent Posts

I was able to put a clone of blogs into plugins sdk. It was hard, reconsider developing your own sollution from scratch (that is what I would do now). Nevertheless if you want to do something similar, you must know about service builder and plugins sdk, and struts-tiles based portlets. in my case, the step I follow where:

create a struts-tiles based portlet in plugin sdk.
copy service builder definition of the portlet to your new portlet's service.xml
copy and (probably refactor package names) of lr portlet java's
run service-builder
fix some .java errors that portlets my have when accessing some java classes not available in the sdk
copy portlet's jsps
copy jsps, struts and tiles definition.
debug a lot

good look
Smilelws2010 lwz
RE: Duplicate an Out-of-the-box Portlet
August 31, 2012 8:43 AM
Answer

Smilelws2010 lwz

Rank: Regular Member

Posts: 153

Join Date: December 16, 2010

Recent Posts

HI Sebastian,

Could you help me in duplicating the directory portlet? How to package the jsps, java classes from the portla source etc. General guide?