Integration of existing gwt application to liferay protal
peter tong
Ranch Hand
Joined: Mar 15, 2008
Posts: 234
posted
0
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();
rootPanel.add(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
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?