Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Hebatu Allah Fahmy
changing portletID
March 14, 2013 10:54 AM
Answer

Hebatu Allah Fahmy

Rank: Junior Member

Posts: 41

Join Date: August 6, 2012

Recent Posts

Hello ,

I have a small challenge in portletId .

I use portletId to render the portlet inside jsp page .

the portlets which its id is number for example 107 , 64 working well and rendered successfully .

The portletid which are like "CommentsPortlet_WAR_fbintegrationportlet" or "1_WAR_socialnetworkingportlet"

doesn't render .


is there a possibility to change portletid to make it number instead of "word" ?

All your feedback is highly appreciated .

Thanks in advance
David H Nebinger
RE: changing portletID
March 14, 2013 11:17 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 9480

Join Date: September 1, 2006

Recent Posts

Portlet id is based off of the <portlet-name /> tag of the portlet.xml combined w/ the deployment artifact. You cannot just change it, you'd have to have the portlet project, change the value in portlet.xml, liferay-portlet.xml, and liferay-display.xml, you'd have to merge the project into ROOT, ...

I think your problem is less to do w/ the portlet id and more to do w/ the instantiable flag of liferay-portlet.xml...

Check out the nested portlet code to see how to do nested portlets correctly.
Hitoshi Ozawa
RE: changing portletID
March 14, 2013 8:31 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Open up the Configuration option of your portlet and go to the Advanced tab. See what's the portlet id is there. If you allowed portlet to be instanceable, each instance of a portlet is going to have an unique id.