Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Philipp Schwarz
Content rendered outside portlet window boundaries
January 3, 2013 12:05 PM
Answer

Philipp Schwarz

Rank: Junior Member

Posts: 29

Join Date: October 19, 2012

Recent Posts

Hey folks,

when creating a page containing the My Account portlet I ran into the following problem: The body of the My Account portlet is rendered outside the My Account portlet boundaries. I've uploaded a screenshot of how it currently looks like as an attachment.

To be able to add the My Account portlet to a page I did the following in my ext environment:

liferay-portlet-ext.xml
 1<?xml version="1.0"?>
 2<!DOCTYPE liferay-portlet-app PUBLIC "-//Liferay//DTD Portlet Application 6.1.0//EN" "http://www.liferay.com/dtd/liferay-portlet-app_6_1_0.dtd">
 3
 4<liferay-portlet-app>
 5    <portlet>
 6       <portlet-name>2</portlet-name>
 7       <system>false</system>
 8    </portlet>
 9</liferay-portlet-app>


portlet-ext.xml
 1<?xml version="1.0"?>
 2
 3<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0">
 4
 5    <portlet>
 6        <portlet-name>2</portlet-name>
 7        <display-name>My Account</display-name>
 8        <portlet-class>com.liferay.portlet.StrutsPortlet</portlet-class>
 9        <init-param>
10            <name>view-action</name>
11            <value>/my_account/edit_user</value>
12        </init-param>
13        <expiration-cache>0</expiration-cache>
14        <supports>
15            <mime-type>text/html</mime-type>
16        </supports>
17        <resource-bundle>com.liferay.portlet.StrutsResourceBundle</resource-bundle>
18    </portlet>
19
20</portlet-app>


I also added the ADD_TO_PAGE action as a resource action and set permissions to be able to see the portlet contents.

I'm using LR 6.1 CE GA2 on a Tomcat 7 server.

Has anyone got a clue why this happens, because I don't get any error messages whatsoever!?

Thankful for any hint,
Phil
Attachment

Attachments: render_fail.png (142.5k)
Philipp Schwarz
RE: Content rendered outside portlet window boundaries
January 8, 2013 6:58 AM
Answer

Philipp Schwarz

Rank: Junior Member

Posts: 29

Join Date: October 19, 2012

Recent Posts

Anyone?