Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bobby Hopkins
Can someone give me an example portlet with a config page?
March 22, 2012 3:29 AM
Answer

Bobby Hopkins

Rank: New Member

Posts: 10

Join Date: March 22, 2012

Recent Posts

Hi,

Can someone give me an example portlet with a configuration page for Liferay 6.1 please? I followed some guides already but I can't get it to work.

Thanks a lot.
Venkat Koppavolu
RE: Can someone give me an example portlet with a config page?
March 22, 2012 3:51 AM
Answer

Venkat Koppavolu

Rank: Junior Member

Posts: 85

Join Date: July 25, 2010

Recent Posts

Check out the Flash port-let which implements configuration action

1. Go to URL - http://www.liferay.com/downloads/liferay-portal/official-plugins
2. Download Flash plug-in portlet

Thanks,
Venkat
David H Nebinger
RE: Can someone give me an example portlet with a config page?
March 22, 2012 5:12 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7238

Join Date: September 1, 2006

Recent Posts

Bobby Hopkins:
Hi,

Can someone give me an example portlet with a configuration page for Liferay 6.1 please? I followed some guides already but I can't get it to work.

Thanks a lot.



Yes, it's called "liferay source code", and it's available from the download page.
Hitoshi Ozawa
RE: Can someone give me an example portlet with a config page?
March 22, 2012 5:35 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

There's nothing special about configuration pages. The wiki pages should provide enough information. What kind of problems are you having?
Bobby Hopkins
RE: Can someone give me an example portlet with a config page?
March 22, 2012 3:54 PM
Answer

Bobby Hopkins

Rank: New Member

Posts: 10

Join Date: March 22, 2012

Recent Posts

Sorry if this sounds a bit stupid, but I am not sure where to place the files exactly. I mean, in the portlet folders in the ROOT folder, there are only 3 files for a portlet i found which has a config page, "configuration.jsp", "view.jsp", "edit.jsp". The wiki is telling me to edit other files even though I don't see them in the final product.
David H Nebinger
RE: Can someone give me an example portlet with a config page?
March 22, 2012 4:18 PM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7238

Join Date: September 1, 2006

Recent Posts

Hmm, basic google search yields:



The list goes on...
Andew Jardine
RE: Can someone give me an example portlet with a config page?
March 22, 2012 5:52 PM
Answer

Andew Jardine

Rank: Expert

Posts: 260

Join Date: December 22, 2010

Recent Posts

Hey Bobby,

If you're not already doing so, I would suggest downloading the Liferay IDE or installing the plugins for eclipse. They make it much easier to get the structure of a project in place. Once you have that up and running you should check out the SAMPLE porlets that Liferay provides. They're available in the SVN. They cover a lot of different topics. If you've never worked with portlets before then be prepared to commit some time -- it's not a concept you're going to pick up in a couple of hours and be an expert at.
Hitoshi Ozawa
RE: Can someone give me an example portlet with a config page?
March 22, 2012 8:56 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

Agree with Andrew. I'm using Liferay IDE too.

When creating a project, I only have to check in the "Create custom portlet class" -> "Next" button -> "Next" button 0> Check "Config" in the "Liferay Portlet Modes" . Necessary files and settings are all done for you!
Bobby Hopkins
RE: Can someone give me an example portlet with a config page?
March 22, 2012 9:39 PM
Answer

Bobby Hopkins

Rank: New Member

Posts: 10

Join Date: March 22, 2012

Recent Posts

Thank you for the reply. How would I do this in Eclipse with Liferay 6.0.5? My current project is based on 6.0.5 so I can't download the new Liferay IDE as it is for Tomcat 7.0 and Liferay 6.1
Harish Kumar
RE: Can someone give me an example portlet with a config page?
March 22, 2012 10:32 PM
Answer

Harish Kumar

Rank: Expert

Posts: 336

Join Date: July 31, 2010

Recent Posts

check out http://liferayzone.wordpress.com/2011/05/07/adding-portlet-preferences-to-custom-portlet/
Hitoshi Ozawa
RE: Can someone give me an example portlet with a config page?
March 24, 2012 1:54 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

Thank you for the reply. How would I do this in Eclipse with Liferay 6.0.5? My current project is based on 6.0.5 so I can't download the new Liferay IDE as it is for Tomcat 7.0 and Liferay 6.1


Where did you get that information. There latest release "supports" the latest release of Liferay but it's also possible to set it up for past version by just selecting the older version files. I'm doing it because my users are still using the older versions.
Andew Jardine
RE: Can someone give me an example portlet with a config page?
May 8, 2012 9:01 AM
Answer

Andew Jardine

Rank: Expert

Posts: 260

Join Date: December 22, 2010

Recent Posts

I'm using the IDE and we're on 6.0 SP1 EE. You just need to configure multiple runtime environments and sdks in eclipse.