Forums de discussion

Two Title Bars in Portlet (updated w/ pic)

Carlos Rivera, modifié il y a 14 années.

Two Title Bars in Portlet (updated w/ pic)

New Member Publications: 18 Date d'inscription: 21/07/09 Publications récentes
I just deployed a custom StrutsPortlet in ext, and everything works great. The only problem I see is that there are two title bars displayed (as if the portlet was nested inside of another)

Has anyone faced this issue before?

Here is my code:

portal-ext.xml
<portlet>
		<portlet-name>sponsors</portlet-name>
		<display-name>Sponsors</display-name>
		<portlet-class>com.liferay.portlet.sponsors.SponsorsPortlet</portlet-class>
		<init-param>
			<name>view-action</name>
			<value>/sponsors/view</value>
		</init-param>
		<init-param>
			<name>edit-action</name>
			<value>/sponsors/edit_sponsor</value>
		</init-param>
		<expiration-cache>0</expiration-cache>
		<supports>
			<mime-type>text/html</mime-type>
		</supports>
		<resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
		<security-role-ref>
			<role-name>power-user</role-name>
		</security-role-ref>
		<security-role-ref>
			<role-name>user</role-name>
		</security-role-ref>
	</portlet>


liferay-portal-ext.xml
<portlet>
		<portlet-name>sponsors</portlet-name>
		<struts-path>sponsors</struts-path>
		<control-panel-entry-category>portal</control-panel-entry-category>
		<control-panel-entry-weight>4.9</control-panel-entry-weight>
	</portlet>

Pièces jointes:

Carlos Rivera, modifié il y a 14 années.

RE: Two Title Bars in Portlet (updated w/ pic)

New Member Publications: 18 Date d'inscription: 21/07/09 Publications récentes
bump. i've made updates to the post.
Carlos Rivera, modifié il y a 14 années.

RE: Two Title Bars in Portlet (updated w/ pic)

New Member Publications: 18 Date d'inscription: 21/07/09 Publications récentes
It turns out this issue only occured whenever a custom portlet existed inside of ext. moving it out to liferay-plugins sdk fixed it.
parth barot, modifié il y a 13 années.

RE: Two Title Bars in Portlet (updated w/ pic)

Junior Member Publications: 42 Date d'inscription: 30/04/10 Publications récentes
Its because of decorate true. In the tiles-defs-ext.xml, make following change, make 'portlet_decorate' to false. I have checked this in Liferay 6.0.5 CE.

<definition name="portlet.custom_export_import" extends="portlet.ext">
		<put name="portlet_decorate" value="false" />
	</definition>


thanks,
Parth.