Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Integration of existing gwt application to liferay protal

peter tong
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my gwt module, onModuleLoad() method I write the following code

RootPanel rootPanel = RootPanel.get("uniqueID");
//RootPanel rootPanel = RootPanel.get();
final SplitLayoutPanel splitLayoutPanel = new SplitLayoutPanel();
splitLayoutPanel.setSize(String.valueOf(Window.getClientWidth()), String.valueOf(Window.getClientHeight()));

I compile the gwt module and copy all file under the directory of *.nocache.js(attachment liferayGwt03.jpg) to demo-portlet/docroot/html/
(attachment liferayGwt02.jpg, demo-portlet is my first portlet example)
and then in docroot/view.jsp, I write the following

<%@ taglib uri="" prefix="portlet" %>
<script src="<%=request.getContextPath()%>/html/com.mycompany.project.GWTDesignerFirst.nocache.js">
<div id="uniqueID"></div>
<portlet:defineObjects />

This is the Demo portlet.

but when I run the liferay portal, the rootPanel occupy all the space of the front page of liferay, not inside any portlet window. why?
how to limit its size to within the portlet window?

[Thumbnail for liferayGwt01.jpg]
[Thumbnail for liferayGwt02.jpg]
[Thumbnail for liferayGwt03.jpg]
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!